11111111
This commit is contained in:
@@ -509,9 +509,14 @@
|
||||
},
|
||||
|
||||
gotoShopp() {
|
||||
uni.switchTab({
|
||||
url: '/pages/home/cloudCard2',
|
||||
// uni.switchTab({
|
||||
// url: '/pages/home/cloudCard2',
|
||||
// })
|
||||
|
||||
uni.navigateTo({
|
||||
url: '/pages/bind/bind_cloudCard'
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
transfer() {
|
||||
@@ -553,20 +558,81 @@
|
||||
this.showModal3 = false
|
||||
},
|
||||
onShareAppMessage: function(res) {
|
||||
wx.showLoading({
|
||||
title: '加载中',
|
||||
icon: 'loading',
|
||||
duration: 10000
|
||||
});
|
||||
|
||||
const promise = new Promise(resolve => {
|
||||
// 模拟网络请求
|
||||
setTimeout(()=>{
|
||||
resolve({
|
||||
title: '标题',
|
||||
path: '页面'
|
||||
let _this = this
|
||||
|
||||
var list = []
|
||||
for (var i = 0; i < this.pickingUpGoods.length; i++) {
|
||||
var item = this.pickingUpGoods[i]
|
||||
|
||||
if (item.count > 0) {
|
||||
list.push({
|
||||
goodsSid: item.goodsSid,
|
||||
select: item.count
|
||||
})
|
||||
},3000)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var params = {
|
||||
customerSid: getApp().globalData.sid,
|
||||
brandId: this.brandType,
|
||||
vos: list
|
||||
}
|
||||
|
||||
console.log("=========0", params);
|
||||
|
||||
_this.$api.transSubmission(params).then((resp) => {
|
||||
|
||||
console.log("=========", resp);
|
||||
|
||||
const promise = new Promise(resolve => {
|
||||
// 模拟网络请求
|
||||
setTimeout(() => {
|
||||
wx.hideLoading()
|
||||
this.showModal3 = false
|
||||
resolve({
|
||||
title: '标题',
|
||||
path: '页面'
|
||||
})
|
||||
}, 3000)
|
||||
})
|
||||
|
||||
return {
|
||||
promise
|
||||
}
|
||||
|
||||
}).catch(e => {
|
||||
this.shortToast('发生错误,请稍后再试.')
|
||||
return
|
||||
})
|
||||
|
||||
return {
|
||||
promise
|
||||
}
|
||||
// this.shareCard()
|
||||
// wx.showLoading({
|
||||
// title: '加载中',
|
||||
// icon: 'loading',
|
||||
// duration: 10000
|
||||
// });
|
||||
// const promise = new Promise(resolve => {
|
||||
// // 模拟网络请求
|
||||
// setTimeout(() => {
|
||||
// wx.hideLoading()
|
||||
// this.showModal3 = false
|
||||
// resolve({
|
||||
// title: '标题',
|
||||
// path: '页面'
|
||||
// })
|
||||
// }, 3000)
|
||||
// })
|
||||
|
||||
// return {
|
||||
// promise
|
||||
// }
|
||||
|
||||
// console.log("res", res)
|
||||
// console.log("data", res.target.dataset)
|
||||
@@ -603,17 +669,34 @@
|
||||
// }
|
||||
},
|
||||
|
||||
shareCard(sid) {
|
||||
shareCard() {
|
||||
let _this = this
|
||||
|
||||
_this.$api.shareEmpCard(sid).then((resp) => {
|
||||
var list = []
|
||||
for (var i = 0; i < this.pickingUpGoods.length; i++) {
|
||||
var item = this.pickingUpGoods[i]
|
||||
|
||||
var item = _this.data.empCardGiftVos.find(item => item.sid === sid)
|
||||
if (item.count > 0) {
|
||||
list.push({
|
||||
goodsSid: item.goodsSid,
|
||||
select: item.count
|
||||
})
|
||||
}
|
||||
|
||||
console.log("item", item);
|
||||
}
|
||||
|
||||
item.share = '2'
|
||||
|
||||
var params = {
|
||||
customerSid: getApp().globalData.sid,
|
||||
brandId: this.brandType,
|
||||
vos: list
|
||||
}
|
||||
|
||||
console.log("=========0", params);
|
||||
|
||||
_this.$api.transSubmission(params).then((resp) => {
|
||||
|
||||
console.log("=========", resp);
|
||||
}).catch(e => {})
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<view class="icon">
|
||||
<image class="img" src="../../static/img/record-query/waiting_extraction.png"
|
||||
mode="aspectFill"></image>
|
||||
<view v-if="data.count>0" class="count">{{data.count}}</view>
|
||||
<!-- <view v-if="data.count>0" class="count">{{data.count}}</view> -->
|
||||
</view>
|
||||
<text class="name">待提菜</text>
|
||||
</view>
|
||||
@@ -47,10 +47,9 @@
|
||||
|
||||
</view>
|
||||
<!-- 订单记录 -->
|
||||
<view class="icon-cow">
|
||||
<!-- <view class="icon-cow">
|
||||
<text class="title">订单记录</text>
|
||||
<view class="group">
|
||||
<!-- 待付款 -->
|
||||
<view class="icon-name" @click="itemClick('待付款')">
|
||||
<view class="icon">
|
||||
<image class="img" src="../../static/img/record-query/obligation.png" mode="aspectFill">
|
||||
@@ -59,7 +58,6 @@
|
||||
</view>
|
||||
<text class="name">待付款</text>
|
||||
</view>
|
||||
<!-- 已提菜 -->
|
||||
<view class="icon-name" @click="itemClick('已付款')">
|
||||
<view class="icon">
|
||||
<image class="img" src="../../static/img/record-query/paid.png" mode="aspectFill">
|
||||
@@ -70,7 +68,7 @@
|
||||
<view class="icon-name"></view>
|
||||
<view class="icon-name"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- 转赠记录 -->
|
||||
<view class="icon-cow">
|
||||
<text class="title">转赠记录</text>
|
||||
@@ -286,10 +284,14 @@
|
||||
|
||||
break;
|
||||
case "赠与我的":
|
||||
|
||||
uni.navigateTo({
|
||||
url: '/pages/records/transferRecords',
|
||||
})
|
||||
break;
|
||||
case "我的转赠":
|
||||
|
||||
uni.navigateTo({
|
||||
url: '/pages/records/transferRecords2',
|
||||
})
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user