diff --git a/pages_mine/mine/authFirm.vue b/pages_mine/mine/authFirm.vue
index 2513b98..4cff056 100644
--- a/pages_mine/mine/authFirm.vue
+++ b/pages_mine/mine/authFirm.vue
@@ -27,7 +27,7 @@
营业执照
-
+
@@ -70,19 +70,23 @@
+
+
+
+
+
+
@@ -93,6 +97,9 @@
mapState
} from 'vuex'
export default {
+ components: {
+ confirmationPopup,
+ },
data() {
return {
name: 'xiaohua',
@@ -104,16 +111,23 @@
checkboxValue: [],
fileList: [],
form: {},
-
+ authMoney: 0,
+ content: '',
}
},
- components: {
- confirmationPopup,
- },
computed: {
...mapState(['certifiedIndividual']),
+ ...mapState(['configList'])
+ },
+ mounted() {
+ this.openConfigMenu("getPrivacyPolicy")
},
methods: {
+ //打开配置信息菜单
+ openConfigMenu(key) {
+ this.content = this.configList[key]
+ // this.$refs.popup.open('bottom');
+ },
deleteImage(e) {
this.fileList.splice(e.index, 1)
@@ -172,19 +186,42 @@
this.$api('infoSubmitCompanyCertification', this.form,
res => {
if (res.code == 200) {
- uni.showToast({
- title: '认证成功',
- icon: 'none'
- })
- setTimeout(() => {
- uni.redirectTo({
- url: '/pages/index/center'
- })
- }, 500)
+ const self = this
+ uni.requestPayment({
+ provider: 'wxpay', // 服务提提供商
+ timeStamp: res.result.timeStamp, // 时间戳
+ nonceStr: res.result.nonceStr, // 随机字符串
+ package: res.result.packageValue,
+ signType: res.result.signType, // 签名算法
+ paySign: res.result.paySign, // 签名
+ success: function(res) {
+ // console.log('支付成功', res);
+ // uni.showToast({
+ // title: '认证成功',
+ // icon: 'none'
+ // })
+ self.$refs.confirmationPopupUpload.open()
+
+ },
+ fail: function(err) {
+ console.log('支付失败', err);
+ self.$refs.confirmationPopup.close()
+ uni.showToast({
+ icon: 'none',
+ title: "支付失败"
+ })
+ }
+ });
+
}
})
}
},
+ confirm() {
+ uni.redirectTo({
+ url: '/pages/index/center'
+ })
+ },
}
}
diff --git a/pages_mine/mine/authPerson.vue b/pages_mine/mine/authPerson.vue
index 07a86b2..a3fbcd2 100644
--- a/pages_mine/mine/authPerson.vue
+++ b/pages_mine/mine/authPerson.vue
@@ -32,19 +32,30 @@
+
+
+
+
+
@@ -63,12 +74,22 @@
type: 0,
cancelText: ['不同意', '取消'],
confirmText: ['同意', '同意并支付'],
+ authMoney: 0,
+ content: '',
}
},
computed: {
...mapState(['certifiedIndividual']),
+ ...mapState(['configList'])
+ },
+ mounted() {
+ this.openConfigMenu("getPrivacyPolicy")
},
methods: {
+ //打开配置信息菜单
+ openConfigMenu(key) {
+ this.content = this.configList[key]
+ },
onCameraClick() {
// 添加拍照或选择图片的逻辑
},
@@ -96,19 +117,37 @@
this.$api('infoSubmitCertification', this.certifiedIndividual,
res => {
if (res.code == 200) {
- uni.showToast({
- title: '认证成功',
- icon: 'none'
- })
- setTimeout(() => {
- uni.redirectTo({
- url: '/pages/index/center'
- })
- }, 500)
+
+ const self = this
+ uni.requestPayment({
+ provider: 'wxpay', // 服务提提供商
+ timeStamp: res.result.timeStamp, // 时间戳
+ nonceStr: res.result.nonceStr, // 随机字符串
+ package: res.result.packageValue,
+ signType: res.result.signType, // 签名算法
+ paySign: res.result.paySign, // 签名
+ success: function(res) {
+ self.$refs.confirmationPopupUpload.open()
+ },
+ fail: function(err) {
+ console.log('支付失败', err);
+ self.$refs.confirmationPopup.close()
+ uni.showToast({
+ icon: 'none',
+ title: "支付失败"
+ })
+ }
+ });
+
}
})
}
},
+ confirm() {
+ uni.redirectTo({
+ url: '/pages/index/center'
+ })
+ },
}
}
diff --git a/pages_mine/mine/certifiedIndividual.vue b/pages_mine/mine/certifiedIndividual.vue
index fb74e1c..7ad0eea 100644
--- a/pages_mine/mine/certifiedIndividual.vue
+++ b/pages_mine/mine/certifiedIndividual.vue
@@ -16,19 +16,19 @@
-
+
-
+
- 立即认证
+ 下一步
diff --git a/pages_mine/mine/sonPage/promotion/promotionDetail.vue b/pages_mine/mine/sonPage/promotion/promotionDetail.vue
index b5fb348..67f4ecb 100644
--- a/pages_mine/mine/sonPage/promotion/promotionDetail.vue
+++ b/pages_mine/mine/sonPage/promotion/promotionDetail.vue
@@ -122,6 +122,7 @@
// if (options.item) {
// let item = JSON.parse(decodeURIComponent(options.item));
// }
+ console.log(options.id,"opID");
this.item.id = options.id
},
components: {
@@ -130,6 +131,8 @@
data() {
return {
upTopList: [],
+ payList: [],
+ payId: null,
item: {
day: 0,
money: 0,
@@ -157,6 +160,7 @@
id: this.item.id
}, res => {
if (res.code == 200) {
+ console.log(res.result,"res.result");
this.item = res.result
// 计算推广时间加上置顶时间
@@ -192,6 +196,7 @@
this.$api('indexTopPayList', res => {
if (res.code == 200) {
for (var i = 0; i < res.result.length; i++) {
+ this.payList = res.result
this.upTopList.push({
name: '置顶' + res.result[i].day + '天' + res.result[i].money + '元'
})
@@ -207,7 +212,13 @@
// 如果匹配到数字,则输出
if (matches && matches.length >= 2) {
- console.log(matches, "matches");
+ // console.log(matches, "matches");
+ for (var i = 0; i < this.payList.length; i++) {
+ if (this.payList[i].day == matches[0]) {
+ this.payId = this.payList[i].id
+ }
+ }
+
// 提取天数和金额
this.popupData.day = matches[0]; // 例如,置顶天数
@@ -251,41 +262,38 @@
payOrder() {
let self = this
+ console.log(self.item.id, "self.item.id");
let data = {
- id: this.item.id,
- day: this.popupData.day,
- money: this.popupData.money,
+ id: self.item.id,
+ dayId: self.payId
}
- this.$api('confirmPromotion', data,
+ self.$api('confirmPromotion', data,
res => {
+ console.log(res,"res");
if (res.code == 200) {
- if (self.form.topId) {
- uni.requestPayment({
- provider: 'wxpay', // 服务提提供商
- timeStamp: res.result.timeStamp, // 时间戳
- nonceStr: res.result.nonceStr, // 随机字符串
- package: res.result.packageValue,
- signType: res.result.signType, // 签名算法
- paySign: res.result.paySign, // 签名
- success: function(res) {
- console.log('支付成功', res);
- self.$refs.confirmationPopupUpload.open()
- // self.$refs.confirmationPopup.close()
- },
- fail: function(err) {
- console.log('支付失败', err);
- self.$refs.confirmationPopup.close()
- uni.showToast({
- icon: 'none',
- title: "支付失败"
- })
- }
- });
- } else {
- self.$refs.confirmationPopupUpload.open()
- }
+ uni.requestPayment({
+ provider: 'wxpay', // 服务提提供商
+ timeStamp: res.result.timeStamp, // 时间戳
+ nonceStr: res.result.nonceStr, // 随机字符串
+ package: res.result.packageValue,
+ signType: res.result.signType, // 签名算法
+ paySign: res.result.paySign, // 签名
+ success: function(res) {
+ console.log('支付成功', res);
+ self.$refs.confirmationPopupUpload.open()
+ // self.$refs.confirmationPopup.close()
+ },
+ fail: function(err) {
+ console.log('支付失败', err);
+ self.$refs.confirmationPopup.close()
+ uni.showToast({
+ icon: 'none',
+ title: "支付失败"
+ })
+ }
+ });
}
})
diff --git a/pages_mine/static/auth/3.png b/pages_mine/static/auth/3.png
new file mode 100644
index 0000000..b213896
Binary files /dev/null and b/pages_mine/static/auth/3.png differ
diff --git a/pages_mine/static/auth/4.png b/pages_mine/static/auth/4.png
new file mode 100644
index 0000000..a519371
Binary files /dev/null and b/pages_mine/static/auth/4.png differ
diff --git a/pages_mine/static/auth/5.png b/pages_mine/static/auth/5.png
new file mode 100644
index 0000000..92748b4
Binary files /dev/null and b/pages_mine/static/auth/5.png differ