更新
This commit is contained in:
parent
47215b2296
commit
fad1ca2b30
@ -883,31 +883,35 @@
|
|||||||
checkOpenId(user) {
|
checkOpenId(user) {
|
||||||
if (user.wechat_user_id === 0) {
|
if (user.wechat_user_id === 0) {
|
||||||
let that = this
|
let that = this
|
||||||
wx.getUserInfo({
|
try{
|
||||||
success: function(res) {
|
wx.getUserInfo({
|
||||||
const encryptedData = res.encryptedData
|
success: function(res) {
|
||||||
const iv = res.iv
|
const encryptedData = res.encryptedData
|
||||||
wx.login({
|
const iv = res.iv
|
||||||
success(res) {
|
wx.login({
|
||||||
if (res.code) {
|
success(res) {
|
||||||
bindMp({
|
if (res.code) {
|
||||||
code: res.code,
|
bindMp({
|
||||||
iv: iv,
|
code: res.code,
|
||||||
encryptedData: encryptedData,
|
iv: iv,
|
||||||
phone: that.account
|
encryptedData: encryptedData,
|
||||||
}).then(res => {
|
phone: that.account
|
||||||
// console.log(res);
|
}).then(res => {
|
||||||
})
|
// console.log(res);
|
||||||
} else {
|
})
|
||||||
// console.log('登录失败!' + res.errMsg)
|
} else {
|
||||||
}
|
// console.log('登录失败!' + res.errMsg)
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
},
|
})
|
||||||
fail(e) {
|
},
|
||||||
// console.log('登录失败!' + res.errMsg)
|
fail(e) {
|
||||||
}
|
// console.log('登录失败!' + res.errMsg)
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
}catch(e){
|
||||||
|
console.log(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
jpushModule.initJPushService()
|
jpushModule.initJPushService()
|
||||||
|
@ -434,6 +434,20 @@
|
|||||||
<!--优惠明细弹窗-->
|
<!--优惠明细弹窗-->
|
||||||
<discountDetails :isShowDiscount="isShowDiscount" @close="closeDiscount" :couponData="couponData">
|
<discountDetails :isShowDiscount="isShowDiscount" @close="closeDiscount" :couponData="couponData">
|
||||||
</discountDetails>
|
</discountDetails>
|
||||||
|
<uni-popup ref="tipsRef">
|
||||||
|
<view class="tips_popup">
|
||||||
|
<image class="r_c_gb" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/9b08120240131172018671.png"></image>
|
||||||
|
<view class="ref_content">
|
||||||
|
<view class="r_c_title">优惠提示</view>
|
||||||
|
<view class="r_c_text">当前订单金额已大于100元</view>
|
||||||
|
<view class="r_c_text">建议参与惠农供销活动进行购买,下单满100元即可获得红包</view>
|
||||||
|
<view class="r_c_btn">
|
||||||
|
<button class="r_c_btn1">继续支付</button>
|
||||||
|
<button class="r_c_btn2">前往活动</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</uni-popup>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@ -700,8 +714,11 @@
|
|||||||
onLoad: function(options) {
|
onLoad: function(options) {
|
||||||
this.type_id = options.type_id
|
this.type_id = options.type_id
|
||||||
this.product_type = options.product_type
|
this.product_type = options.product_type
|
||||||
this.source = options.source
|
|
||||||
this.seckillId = options.seckillId
|
this.seckillId = options.seckillId
|
||||||
|
if(options.source) this.source = options.source;
|
||||||
|
else this.$nextTick(()=>{
|
||||||
|
this.$refs.tipsRef.open();
|
||||||
|
})
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
this.from = this.$wechat.isWeixin() ? 'weixin' : 'h5'
|
this.from = this.$wechat.isWeixin() ? 'weixin' : 'h5'
|
||||||
// #endif
|
// #endif
|
||||||
@ -2626,4 +2643,24 @@
|
|||||||
padding-left: 20rpx;
|
padding-left: 20rpx;
|
||||||
font-size: 25rpx;
|
font-size: 25rpx;
|
||||||
}
|
}
|
||||||
|
.tips_popup{
|
||||||
|
width: 600rpx;
|
||||||
|
height: 450rpx;
|
||||||
|
position: relative;
|
||||||
|
.r_c_gb{
|
||||||
|
width: 100%;
|
||||||
|
height: 420rpx;
|
||||||
|
margin-top: 30rpx;
|
||||||
|
}
|
||||||
|
.ref_content{
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
.r_c_title{
|
||||||
|
font-weight: blod;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
Loading…
x
Reference in New Issue
Block a user