|
@@ -28,7 +28,7 @@
|
|
|
<view class="popup">
|
|
|
<view class="header">
|
|
|
<h4>绑定手机号</h4>
|
|
|
- <p class="tip">注意:首次登录,需绑定手机号才可成功领取农商网红包</p>
|
|
|
+ <p class="tip">提示:首次登陆请绑定于机号,连续奖励21次红包,最高可免单</p>
|
|
|
</view>
|
|
|
<view class="main">
|
|
|
<view style="height: 70rpx">
|
|
@@ -81,7 +81,7 @@
|
|
|
shopInfo: {},
|
|
|
zfbInfo: {},
|
|
|
shopId: "",
|
|
|
- localUserInfo: {}
|
|
|
+ localUserInfo: {}
|
|
|
|
|
|
};
|
|
|
},
|
|
@@ -247,77 +247,6 @@
|
|
|
uni.$u.toast('倒计时结束后再发送');
|
|
|
}
|
|
|
},
|
|
|
- // async Pay() {
|
|
|
- // uni.showLoading({
|
|
|
- // title: '支付中'
|
|
|
- // });
|
|
|
- // // uni.hideLoading();
|
|
|
- // // window.open(`${requestConfig.redirectOpen}pages/index/paySuccess`)
|
|
|
-
|
|
|
- // if (!this.price) {
|
|
|
- // uni.$u.toast('请输入支付金额!');
|
|
|
- // }
|
|
|
- // let res = await axios.get(`${requestConfig.BaseUrl}order/app/v1/buyer/order/createOfflineOrder
|
|
|
- // ?shopId=${this.shopId}&price=${this.price}`, {
|
|
|
- // headers: {
|
|
|
- // 'token': `${this.userInfo.token}`
|
|
|
- // }
|
|
|
- // });
|
|
|
- // if (res.data.code == 200) {
|
|
|
- // //post请求
|
|
|
- // let data = {
|
|
|
- // "orderId": res.data.data, //订单id
|
|
|
- // "orderType": 11, //订单类型 -1--其他 2-司机保证金 3-商品交易 4-线下交易
|
|
|
- // "payKinds": 0, //支付类型 0-微信 1-支付宝
|
|
|
- // "payMeth": 6 //5-微信小程序支付 6-微信H5支付 7-支付宝app支付
|
|
|
- // }
|
|
|
- // const pay = await axios.post(`${requestConfig.BaseUrl}order/app/v1/buyer/order/offlineOrderPay
|
|
|
- // `, data, {
|
|
|
- // headers: {
|
|
|
- // 'Token': `${this.userInfo.token}`
|
|
|
- // }
|
|
|
- // });
|
|
|
- // if (pay.data.code == 200) {
|
|
|
- // let res = JSON.parse(pay.data.data.result)
|
|
|
- // console.log(res);
|
|
|
- // WeixinJSBridge.invoke(
|
|
|
- // "getBrandWCPayRequest", {
|
|
|
- // // 公众号名称,由商户传入
|
|
|
- // appId: res.appId,
|
|
|
- // // 时间戳,自1970年以来的秒数
|
|
|
- // timeStamp: res.timeStamp,
|
|
|
- // // 随机串
|
|
|
- // nonceStr: res.nonceStr,
|
|
|
- // package: res.package,
|
|
|
- // // 微信签名方式:
|
|
|
- // signType: res.signType,
|
|
|
- // // 微信签名
|
|
|
- // paySign: res.paySign,
|
|
|
- // },
|
|
|
- // function(res) {
|
|
|
- // if (res.err_msg == "get_brand_wcpay_request:ok") {
|
|
|
- // // 使用以上方式判断前端返回,
|
|
|
- // // 微信团队郑重提示:
|
|
|
- // uni.hideLoading();
|
|
|
- // window.location.href = requestConfig.redirectOpen
|
|
|
- // // res.err_msg将在用户支付成功后返回ok,但并不保证它绝对可靠。
|
|
|
- // } else {
|
|
|
- // uni.hideLoading();
|
|
|
- // uni.$u.toast('支付失败!');
|
|
|
- // }
|
|
|
- // }
|
|
|
- // );
|
|
|
-
|
|
|
- // } else {
|
|
|
- // uni.hideLoading();
|
|
|
- // uni.$u.toast('支付失败!');
|
|
|
- // }
|
|
|
- // }
|
|
|
- // },
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
};
|
|
|
</script>
|