Commit ef43d451 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 9365b1d5
......@@ -94,7 +94,7 @@
inviteUId: '',
serviceUrl: '',
downUrl: '', //
versionName: 'v 1.0.0',
versionName: '1.1.0',
auth: false, // 三要素实名认证
userInfo: null,
pkgName: 'com.mints.dybrightvideo'
......
......@@ -81,8 +81,9 @@
</view>
<view style="display: flex;flex-direction: column;align-items: center;">
<button @click="handleKefu" open-type="im" data-im-id="dy1d1fub8mqd" style="font-size: 24rpx;color: gray;margin-top: 16rpx;margin-bottom: 18rpx;background-color: transparent;">
订单中如有疑问,请联系客服</button>
<view style="font-size: 29rpx;color: gray;margin-top: 16rpx;">
客服时间工作日 9:00-18:00</view>
<button class="button2" open-type="im" data-im-id="du_movie">在线客服</button>
</view>
</scroll-view>
</view>
......@@ -175,11 +176,11 @@
},
handleAgree() {
this.agreeFlag = true
},
handleClickClose() {
this.$refs.coinPop.close('bottom');
this.$emit('clickClose');
this.$emit('close');
},
handleClickClose() {
this.$refs.coinPop.close('bottom');
this.$emit('clickClose');
this.$emit('close');
},
handleClose() {
this.$refs.coinPop.close('bottom');
......@@ -190,12 +191,12 @@
this.handlePay();
},
handlePay() {
if (this.os == 'ios') {
message.notify('iOS暂不支持购买');
return
}
handlePay() {
// if (this.os == 'ios') {
// message.notify('iOS暂不支持购买');
// return
// }
let that = this;
let vipBean = this.vipList[this.selectedIndex];
......@@ -242,33 +243,14 @@
}
let that = this;
if (this.os == 'ios') {
if (!tt.canIUse('getOrderPayment.object.imId')) {
message.notify('请升级抖音APP版本');
return
}
tt.getOrderPayment({
orderId: oid,
imId: ttData.imId,
success(res) {
that.queryOrderStatus(largeType, ttData.tidStr);
},
fail(res) {
// message.notify(res.errMsg);
},
});
} else {
tt.getOrderPayment({
orderId: oid,
success(res) {
that.queryOrderStatus(largeType, ttData.tidStr);
},
fail(res) {
// message.notify(res.errMsg);
},
});
}
tt.getOrderPayment({
orderId: oid,
success(res) {
that.queryOrderStatus(largeType, ttData.tidStr);
},
fail(res) {
},
});
},
queryOrderStatus(largeType, tid) {
let that = this;
......@@ -391,4 +373,18 @@
}
}
}
.button2 {
width: 300rpx;
height: 50rpx;
line-height: 50rpx;
text-align: center;
margin: 10rpx 20rpx;
border-radius: 10rpx;
background-color: white;
border: 1px orange solid;
color: orange;
font-size: 26rpx;
box-shadow: 0 0 2px 0px rgba(255, 255, 255, 0.1);
}
</style>
\ No newline at end of file
......@@ -5,8 +5,9 @@
<image @click="onClose" style="width: 50rpx; height: 50rpx;margin-left:auto;margin-right: 30rpx;
margin-bottom: 30rpx;" src="https://mints-web.oss-cn-beijing.aliyuncs.com/images/ic_close_white.png"></image>
<view class="content">
<text style="font-size: 40rpx;margin-bottom: 15rpx;">客服时间: 工作日9:00-18:00</text>
<text class="button1" @click="handleBtn1">客服电话</text>
<button class="button2" open-type="im" data-im-id="dy1d1fub8mqd">客服在线</button>
<button class="button2" open-type="im" data-im-id="du_movie">在线客服</button>
</view>
</view>
</uni-popup>
......@@ -52,11 +53,11 @@
this.onClose()
},
imCallback(e) {
console.log("跳转IM客服成功", e.detail);
console.log("跳转IM客服成功", e.detail);
this.onClose()
},
onimError(e) {
console.log("拉起IM客服失败", e.detail);
console.log("拉起IM客服失败", e.detail);
this.onClose()
}
},
......@@ -65,7 +66,7 @@
handler: function(newVal, oldVal) {
if (newVal) {
this.handleShow();
}
}
},
immediate: true
}
......
......@@ -131,6 +131,7 @@ export default {
Object.assign(header, {
token: uni.getStorageSync('token'),
pkgName: app.globalData.pkgName,
version: app.globalData.versionName,
proChannel:uniChannel
})
......
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