Commit 19499220 authored by mengcuiguang's avatar mengcuiguang

添加页面、优化支付逻辑

parent 727db77e
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
<image style="width: 46rpx;height: 46rpx;" <image style="width: 46rpx;height: 46rpx;"
src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_scan_agree.png" mode="widthFix"> src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_scan_agree.png" mode="widthFix">
</image> </image>
<view style="font-size: 26rpx;color: #3B3B3B;margin-top: 20rpx;">申请退款</view> <view style="font-size: 26rpx;color: #3B3B3B;margin-top: 20rpx;">关于我们</view>
</view> </view>
<view @click="handleSet" <view @click="handleSet"
style="display: flex;flex-direction: column;align-items: center;justify-content: center;"> style="display: flex;flex-direction: column;align-items: center;justify-content: center;">
...@@ -122,16 +122,14 @@ ...@@ -122,16 +122,14 @@
navigateTo(`/pagesD/setting/setting`) navigateTo(`/pagesD/setting/setting`)
}, },
handleAgree() { handleAgree() {
// let url = 'https://mints-web.mints-id.com/agreements/scandemon/yhxy.html'; navigateTo(`/pagesD/about/about`)
// navigateTo(`/pages/brower/brower?url=` + url);
this.handlePhone();
}, },
handleVipPay() { handleVipPay() {
navigateTo(`/pagesA/vipPay/vipPay`) navigateTo(`/pagesA/vipPay/vipPay`)
}, },
handlePhone() { handlePhone() {
tt.makePhoneCall({ tt.makePhoneCall({
number: '4000969950', phoneNumber: '4000969950',
success: function(res) { success: function(res) {
console.log('拨打电话成功!'); console.log('拨打电话成功!');
}, },
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
"style": { "style": {
"navigationBarTitleText": "编辑", "navigationBarTitleText": "编辑",
"navigationStyle": "default", "navigationStyle": "default",
"navigationBarBackgroundColor": "#2196f3", "navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black" "navigationBarTextStyle": "black"
} }
}, { }, {
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
"style": { "style": {
"navigationBarTitleText": "识别结果", "navigationBarTitleText": "识别结果",
"navigationStyle": "default", "navigationStyle": "default",
"navigationBarBackgroundColor": "#2196f3", "navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black" "navigationBarTextStyle": "black"
} }
}, },
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
"style": { "style": {
"navigationBarTitleText": "AR测量", "navigationBarTitleText": "AR测量",
"navigationStyle": "default", "navigationStyle": "default",
"navigationBarBackgroundColor": "#2196f3", "navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black" "navigationBarTextStyle": "black"
} }
}, },
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
"style": { "style": {
"navigationBarTitleText": "测量介绍", "navigationBarTitleText": "测量介绍",
"navigationStyle": "default", "navigationStyle": "default",
"navigationBarBackgroundColor": "#2196f3", "navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black" "navigationBarTextStyle": "black"
} }
}, },
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
"style": { "style": {
"navigationBarTitleText": "测量拍摄", "navigationBarTitleText": "测量拍摄",
"navigationStyle": "default", "navigationStyle": "default",
"navigationBarBackgroundColor": "#2196f3", "navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black" "navigationBarTextStyle": "black"
} }
}, },
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
"style": { "style": {
"navigationBarTitleText": "测量拍摄", "navigationBarTitleText": "测量拍摄",
"navigationStyle": "default", "navigationStyle": "default",
"navigationBarBackgroundColor": "#2196f3", "navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black" "navigationBarTextStyle": "black"
} }
} }
...@@ -117,6 +117,14 @@ ...@@ -117,6 +117,14 @@
"navigationBarBackgroundColor": "#ffffff", "navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black" "navigationBarTextStyle": "black"
} }
},{
"path": "about/about",
"style": {
"navigationStyle": "default",
"navigationBarTitleText": "关于我们",
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black"
}
}, { }, {
"path": "setting/setting", "path": "setting/setting",
"style": { "style": {
......
...@@ -47,16 +47,16 @@ ...@@ -47,16 +47,16 @@
</view> </view>
<image @click="handlePay" style="width: 100%;" <image @click="handlePay" style="width: 100%;"
src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg_scan/img/bg_vip_about.png" mode="widthFix" /> src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_vip_about.png" mode="widthFix" />
</scroll-view> </scroll-view>
<view> <view>
<uni-popup ref="alertDialog" type="center"> <uni-popup ref="alertDialog" type="center">
<uni-popup-dialog confirmText="确认" title="付费须知" content=" <uni-popup-dialog confirmText="确认" title="付费须知" content="
1、看点和会员属于虚拟商品,一经购买不可退换; 1、会员属于虚拟商品,一经购买不可退换;
2、未满18岁的未成年人需要在监护人主导、同意下进行相关付费操作; 2、未满18岁的未成年人需要在监护人主导、同意下进行相关付费操作;
3、充值看点一般5分钟内到账,如未到账请在“我的”页面联系客服;" 3、充值会员一般5分钟内到账,如未到账请在“我的”页面联系客服;"
@close="dialogClose"> @close="dialogClose">
</uni-popup-dialog> </uni-popup-dialog>
</uni-popup> </uni-popup>
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
}, },
ttPrePay(ttData, largeType) { ttPrePay(ttData, largeType) {
if (!tt.canIUse('requestOrder')) { if (!tt.canIUse('requestOrder')) {
message.notify('请升级抖音APP版本'); message.notify('请升级抖音APP版本!');
return return
} }
...@@ -155,20 +155,21 @@ ...@@ -155,20 +155,21 @@
that.ttPay(largeType, res.orderId, ttData); that.ttPay(largeType, res.orderId, ttData);
}, },
fail(res) { fail(res) {
// message.notify(res.errMsg); message.notify(res.errMsg);
console.log('requestOrder res.errMsg',res)
}, },
}); });
}, },
ttPay(largeType, oid, ttData) { ttPay(largeType, oid, ttData) {
if (!tt.canIUse('getOrderPayment')) { if (!tt.canIUse('getOrderPayment')) {
message.notify('请升级抖音APP版本'); message.notify('请升级抖音APP版本~');
return return
} }
let that = this; let that = this;
if (this.os == 'ios') { if (this.os == 'ios') {
if (!tt.canIUse('getOrderPayment.object.imId')) { if (!tt.canIUse('getOrderPayment.object.imId')) {
message.notify('请升级抖音APP版本'); message.notify('请升级抖音APP版本.');
return return
} }
...@@ -179,6 +180,7 @@ ...@@ -179,6 +180,7 @@
that.queryOrderStatus(largeType, ttData.tidStr); that.queryOrderStatus(largeType, ttData.tidStr);
}, },
fail(res) { fail(res) {
console.log('ios=ttPay res.errMsg',res)
message.notify(res.errMsg); message.notify(res.errMsg);
}, },
}); });
...@@ -189,6 +191,7 @@ ...@@ -189,6 +191,7 @@
that.queryOrderStatus(largeType, ttData.tidStr); that.queryOrderStatus(largeType, ttData.tidStr);
}, },
fail(res) { fail(res) {
console.log('android=ttPay res.errMsg',res)
message.notify(res.errMsg); message.notify(res.errMsg);
}, },
}); });
......
<!-- <template>
<view class="body">
<view >
<image src="@/static/logo-about.png" mode="widthFix" style="border-radius: 20rpx;margin-bottom: 200rpx;" />
<view style="display: flex;justify-content: center;margin-top: 50rpx;font-size: 26rpx;color: gray;">
智能扫描精灵 v{{ versionName }}
</view>
</view>
<view >
<view style="color: black;margin-top: 40rpx;font-size: 40rpx;">Copyright 2024 Inc.</view>
</view>
</view>
</template>
<script>
const app = getApp();
export default {
name: 'about',
mixins: [common],
data() {
return {
versionName: app.globalData.versionName
};
},
methods: {
}
};
</script>
<style lang="scss">
.body {
background-color: white;
}
</style> -->
<template>
<view class="body">
<view style="display: flex;flex-direction: column;width: 100%;height: 90%;align-items: center;">
<image src="@/static/logo-about.png" mode="widthFix" style="width: 120rpx;height: 120rpx;margin-top: 100rpx;" />
<view style="margin-top: 50rpx;font-size: 26rpx;color: gray;">
智能扫描精灵 {{ versionName }}
</view>
</view>
<view style="display: flex;justify-content: center;">
<view style="color: black;font-size: 40rpx;">Copyright 2024 Inc.</view>
</view>
</view>
</template>
<script>
import common from '@/mixins/common';
import {
getToLocal
} from "@/utils/utils.js"
import {
navigateTo,
message,
alert,
loading
} from '@/utils/fun.js';
import {
openUrl
} from '@/utils/app+.js';
const app = getApp();
export default {
name: 'index',
mixins: [common],
data() {
return {
userBean: {},
versionName: app.globalData.versionName
};
},
methods: {
onShow() {
},
}
};
</script>
<style lang="scss">
@import '@/scss/uni.scss';
.body {
background-color: whitesmoke;
}
</style>
\ No newline at end of file
<template> <template>
<view class="body"> <view class="body">
<view class="infobg" style="margin: 20rpx;">
<view class="item arrow">
用户ID
<view class="item_bd ellipsis" style="margin-left: 58rpx;color:black">{{userBean.idcode}}</view>
</view>
</view>
<view style="display: flex;justify-content: center;margin-top: 50rpx;font-size: 26rpx;color: gray;"> <view style="display: flex;justify-content: center;margin-top: 50rpx;font-size: 26rpx;color: gray;">
当前版本:{{ versionName }} 当前版本:{{ versionName }}
</view> </view>
...@@ -29,11 +36,22 @@ ...@@ -29,11 +36,22 @@
mixins: [common], mixins: [common],
data() { data() {
return { return {
userBean: {},
versionName: app.globalData.versionName versionName: app.globalData.versionName
}; };
}, },
methods: { methods: {
onShow() {
this.post({
url: '/user/baseMsg',
showLoading: false,
success: ({
data
}) => {
this.userBean = data;
}
});
},
} }
}; };
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment