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 @@ - 电子认证服务协议 - 数字证书(以下简称证书)是电子商务认证有限公司(以下简称广东)签发的网上凭证,是为身份确实、资信可靠的个人、单位和服务器等在网上进行安全电子交易、安全电子事务处理等提供的一种身份认证。凡企业、机关团体、行政事业等单位、个人和服务器数字证书申请人(以下简称证书申请人)均可向广东业务受理审批单位申请领用数字证书。为了保障数字证书申请人的合法权利,维护电子商务认证有限公司的合法经营权益,双方本着自愿、平等的原则,达成以下协议书条款,双方共同遵守执行。第三方认证是 - XX制造网为其XX通会员提供的一项以标准化审核认证为主要内容的服务,包 - 含资质认证与实地认证。 - 实地认证的审核认证服务内容要包括会员的工商注册信息、销售贸易能力和(或)产品设计开发能力、体系和产品认证、生产能力和质量管理、实景照片等内容。资质认证的审核认证服务内容主要包括会员的工商注册信息、经营资 - 质、生产许可资质等内容。 - 第三方认证审核分为初次审核和年度复审两种类型。初次审核,是指对会员进行首次审核,并出具报告。年度复审,是指为了认证保证报告所反映的实际情况的时效性,而对会员进行的每年一次的复审。XX制造网根据用户提交的服务申请及用户进行的自评情况,与用户确定服务购买意向并签署合同。用户支付相应费用后,XX制造网委托第三方认证机构在约定的日期进行审核并出具相应的认证报告。XX制造网将使用专有标识“、”对通过审核 - 的用户的展示厅进行标注。 + 本次认证需付费,确认? + + + + + + + 已由平台进行审核,时间周期为24小时 + + + + @@ -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 @@ - 电子认证服务协议 + + 本次认证需付费,确认? + + + + + + + 已由平台进行审核,时间周期为24小时 + + + @@ -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