|
@@ -12,7 +12,8 @@
|
|
|
<view class="barrage-swiper-item-content flex">
|
|
|
<image :src="item.avatar" mode="scaleToFill" />
|
|
|
<view class="title ells-one">{{ item.nickName }}
|
|
|
- {{ item.type == 1 ? '刮出了' : '兑换了' }} {{ item.prizeInfo }}</view>
|
|
|
+ {{ item.type == 1 ? '刮出了' : '兑换了' }} {{ item.prizeInfo }}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</swiper-item>
|
|
@@ -135,6 +136,15 @@
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
+ <!-- 引导页面 -->
|
|
|
+ <u-popup :show='showMp' mode='center' round='7'>
|
|
|
+ <view style="width: 500rpx; display: inline-block;">
|
|
|
+ <view style="display: inline-block; margin: 20rpx 10rpx 10rpx 20rpx;font-size: 34rpx;font-weight: bold;">提示:</view>
|
|
|
+ <view class="" style=" margin: 10rpx 10rpx 40rpx 20rpx;font-size: 34rpx;">
|
|
|
+   “盲票”已升级为“码上快购”点击“ <view @click='toAnotherApplet' style="display: inline-block;color: #FFAE00;">立即前往</view> ” ,跳转至 “码上快购”小程序
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </u-popup>
|
|
|
<!-- tabbar组件 -->
|
|
|
<custom-tab-bar :activeValue="'index'" />
|
|
|
<!-- 支付弹框组件 -->
|
|
@@ -175,9 +185,12 @@
|
|
|
ticketInfo: {},
|
|
|
clickLoading: true,
|
|
|
userInfo: '',
|
|
|
+ showMp: false,
|
|
|
};
|
|
|
},
|
|
|
onLoad(opthios) {
|
|
|
+ if(appId == 1) return this.showMp = true
|
|
|
+
|
|
|
uni.hideTabBar()
|
|
|
if (opthios.userId) {
|
|
|
uni.setStorageSync('shareUid', opthios.userId != 'undefined' ? opthios.userId : null)
|
|
@@ -260,6 +273,22 @@
|
|
|
this.getActivityList()
|
|
|
},
|
|
|
methods: {
|
|
|
+ toAnotherApplet() {
|
|
|
+ /**
|
|
|
+ * envVersion 类型为字符串
|
|
|
+ * envVersion: 'develop', //开发版
|
|
|
+ * envVersion: 'trial', //体验版
|
|
|
+ * envVersion: 'release',//正式版
|
|
|
+ */
|
|
|
+ uni.navigateToMiniProgram({
|
|
|
+ appId:'wxffb4598e70b9f871',// appid
|
|
|
+ path:'/pages/index/index',// 首页路径
|
|
|
+ envVersion:"release",
|
|
|
+ success: res => {
|
|
|
+ // 打开成功
|
|
|
+ },
|
|
|
+ })
|
|
|
+ },
|
|
|
// 切换盲票
|
|
|
changeTicket({
|
|
|
detail
|
|
@@ -314,7 +343,7 @@
|
|
|
// 投诉建议
|
|
|
contactService() {
|
|
|
// #ifdef MP-WEIXIN
|
|
|
- if(appId == 1) {
|
|
|
+ if (appId == 1) {
|
|
|
// wx.openCustomerServiceChat({
|
|
|
// extInfo: {
|
|
|
// url: 'https://work.weixin.qq.com/kfid/kfc36c0d90028adbd24'
|
|
@@ -324,7 +353,7 @@
|
|
|
uni.navigateTo({
|
|
|
url: `/pages/index/wxofficial`
|
|
|
})
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
wx.openCustomerServiceChat({
|
|
|
extInfo: {
|
|
|
url: 'https://work.weixin.qq.com/kfid/kfcf9da505d4dc18c87'
|
|
@@ -424,7 +453,7 @@
|
|
|
// 立即开刮
|
|
|
payment() {
|
|
|
this.payInfo = this.ticketList[this.ticketIndex]
|
|
|
- if(this.payInfo) {
|
|
|
+ if (this.payInfo) {
|
|
|
let data = {
|
|
|
userCouponIds: [],
|
|
|
autoCoupon: 1,
|
|
@@ -438,9 +467,11 @@
|
|
|
...res.data,
|
|
|
...this.payInfo,
|
|
|
picUrl: this.payInfo.picUrl[0],
|
|
|
- couponTitle: res.data && res.data.couponList && res.data.couponList.length && res
|
|
|
+ couponTitle: res.data && res.data.couponList && res.data.couponList.length &&
|
|
|
+ res
|
|
|
.data.couponList[0].title,
|
|
|
- couponId: res.data && res.data.couponList && res.data.couponList.length && res.data
|
|
|
+ couponId: res.data && res.data.couponList && res.data.couponList.length && res
|
|
|
+ .data
|
|
|
.couponList[0].id
|
|
|
}
|
|
|
this.payInfo = info
|
|
@@ -449,10 +480,10 @@
|
|
|
}).catch(() => {
|
|
|
uni.$u.toast('开刮失败,请重试!');
|
|
|
})
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
uni.$u.toast('盲票正在准备中');
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
|
|
|
// 关闭支付弹框
|
|
@@ -507,14 +538,14 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if(this.ticketInfo && this.ticketInfo.boxId){
|
|
|
+ if (this.ticketInfo && this.ticketInfo.boxId) {
|
|
|
uni.navigateTo({
|
|
|
url: `/packagePrize/rolling/index?boxId=${ this.ticketInfo.boxId }&isTry=1`
|
|
|
})
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
uni.$u.toast('盲票正在准备中');
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
|
|
|
// 线上立即刮票成功,跳转到刮奖过程
|
|
@@ -597,7 +628,9 @@
|
|
|
},
|
|
|
|
|
|
getBaseInfo() {
|
|
|
- $http.post('/api/v1/mp/user/getLoginUserinfo', { appSource: appId }).then(res => {
|
|
|
+ $http.post('/api/v1/mp/user/getLoginUserinfo', {
|
|
|
+ appSource: appId
|
|
|
+ }).then(res => {
|
|
|
uni.hideLoading();
|
|
|
if (res.code == 0) {
|
|
|
this.userInfo = res.data
|