123
This commit is contained in:
@@ -134,7 +134,7 @@
|
||||
</view>
|
||||
|
||||
<view style="color: #888;font-size: 10px;height: 10px;line-height: 10px;margin-top: 5px;">
|
||||
,{{data.brandVos[selectIndex2].qssl}}起订,200斤以上免配送费</view>
|
||||
,{{data.brandVos[selectIndex2].qssl}}起订。</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
@@ -401,7 +401,7 @@
|
||||
|
||||
},
|
||||
methods: {
|
||||
onKeyInput() {
|
||||
onKeyInput(event) {
|
||||
this.transferInfo.remarks = event.target.value
|
||||
},
|
||||
shareGift() {
|
||||
@@ -467,7 +467,9 @@
|
||||
this.getcount()
|
||||
},
|
||||
jia(item) {
|
||||
item.count = Number(item.count) + 1
|
||||
if (item.count < item.goodsNumber)
|
||||
item.count = Number(item.count) + 1
|
||||
|
||||
this.getcount()
|
||||
this.addGoods(item)
|
||||
},
|
||||
@@ -509,14 +511,14 @@
|
||||
},
|
||||
|
||||
gotoShopp() {
|
||||
// uni.switchTab({
|
||||
// url: '/pages/home/cloudCard2',
|
||||
// })
|
||||
|
||||
uni.navigateTo({
|
||||
url: '/pages/bind/bind_cloudCard'
|
||||
uni.switchTab({
|
||||
url: '/pages/home/cloudCard2',
|
||||
})
|
||||
|
||||
// uni.navigateTo({
|
||||
// url: '/pages/bind/bind_cloudCard'
|
||||
// })
|
||||
|
||||
},
|
||||
|
||||
transfer() {
|
||||
@@ -558,115 +560,72 @@
|
||||
this.showModal3 = false
|
||||
},
|
||||
onShareAppMessage: function(res) {
|
||||
wx.showLoading({
|
||||
title: '加载中',
|
||||
icon: 'loading',
|
||||
duration: 10000
|
||||
});
|
||||
|
||||
let _this = this
|
||||
const promise = new Promise(resolve => {
|
||||
// 模拟网络请求
|
||||
setTimeout(() => {
|
||||
|
||||
var list = []
|
||||
for (var i = 0; i < this.pickingUpGoods.length; i++) {
|
||||
var item = this.pickingUpGoods[i]
|
||||
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
|
||||
})
|
||||
}
|
||||
if (item.count > 0) {
|
||||
list.push({
|
||||
goodsSid: item.goodsSid,
|
||||
select: item.count
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
var params = {
|
||||
customerSid: getApp().globalData.sid,
|
||||
brandId: this.brandType,
|
||||
vos: list
|
||||
}
|
||||
var params = {
|
||||
customerSid: getApp().globalData.sid,
|
||||
brandId: _this.brandType,
|
||||
remarks: _this.transferInfo.remarks,
|
||||
vos: list
|
||||
}
|
||||
|
||||
console.log("=========0", params);
|
||||
console.log("=========0", params);
|
||||
|
||||
_this.$api.transSubmission(params).then((resp) => {
|
||||
_this.$api.transSubmission(params).then((resp) => {
|
||||
|
||||
console.log("=========", resp);
|
||||
console.log("=========", resp);
|
||||
_this.showModal3 = false
|
||||
|
||||
const promise = new Promise(resolve => {
|
||||
// 模拟网络请求
|
||||
setTimeout(() => {
|
||||
wx.hideLoading()
|
||||
this.showModal3 = false
|
||||
resolve({
|
||||
title: '标题',
|
||||
path: '页面'
|
||||
let shareData = JSON.stringify({
|
||||
params: {
|
||||
code: resp.transferCode,
|
||||
codeKey: resp.sid
|
||||
},
|
||||
functionName: 'bindCard',
|
||||
url: '/pages/bind/bind_cloudCard?code=' + resp
|
||||
.transferCode + "&codeKey=" + resp.sid
|
||||
|
||||
// url: '/pages/home/cloudCard2?shareSid=' + getApp().globalData.sid,
|
||||
// functionName: 'share'
|
||||
})
|
||||
}, 3000)
|
||||
})
|
||||
// 转码传输
|
||||
let value = encodeURIComponent(shareData)
|
||||
|
||||
return {
|
||||
promise
|
||||
}
|
||||
resolve({
|
||||
title: '汇融惠享-云菜窖',
|
||||
// ②
|
||||
path: '/pages/login/login?data=' + value,
|
||||
imageUrl: 'https://supervise.yxtsoft.com/lpk/image/shareAffeection.png', //自定义图片路径,显示图片长宽比是 5:4。
|
||||
|
||||
}).catch(e => {
|
||||
this.shortToast('发生错误,请稍后再试.')
|
||||
return
|
||||
})
|
||||
|
||||
}).catch(e => {
|
||||
_this.shortToast('发生错误,请稍后再试.')
|
||||
return
|
||||
})
|
||||
|
||||
}, 0)
|
||||
})
|
||||
|
||||
// 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
|
||||
|
||||
// return {
|
||||
// promise
|
||||
// }
|
||||
|
||||
// console.log("res", res)
|
||||
// console.log("data", res.target.dataset)
|
||||
// var data = res.target.dataset.info
|
||||
|
||||
// // ①
|
||||
// let shareData = JSON.stringify({
|
||||
// params: {
|
||||
// code: data.code,
|
||||
// codeKey: data.codeKey,
|
||||
// customerSid: ''
|
||||
// },
|
||||
// functionName: 'bindCard',
|
||||
// url: '/pages/detail/detail_affeection?sid=' + data.sid
|
||||
|
||||
// // url: '/pages/home/cloudCard2?shareSid=' + getApp().globalData.sid,
|
||||
// // functionName: 'share'
|
||||
// })
|
||||
// // 转码传输
|
||||
// let value = encodeURIComponent(shareData)
|
||||
|
||||
// return {
|
||||
// title: '汇融惠享-云菜窖',
|
||||
// // ②
|
||||
// path: '/pages/login/login?data=' + value,
|
||||
// imageUrl: 'https://supervise.yxtsoft.com/lpk/image/shareAffeection.png', //自定义图片路径,显示图片长宽比是 5:4。
|
||||
// success: function(res) {
|
||||
// console.log('aaaa', "分享成功")
|
||||
// },
|
||||
// fail: function(res) {
|
||||
// // 转发失败
|
||||
// console.log('aaaa', "用户点击了取消")
|
||||
// }
|
||||
// }
|
||||
},
|
||||
|
||||
shareCard() {
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
|
||||
</view>
|
||||
|
||||
<text style="font-size: 12px;color: #4B4B4B; margin-top: 8px;">邀请新朋友后,您和您的朋友将获得“蔬菜品鉴礼包”。</text>
|
||||
<text style="font-size: 12px;color: #4B4B4B; margin-top: 8px;">邀请新朋友后,您将获得“蔬菜品鉴礼包”。</text>
|
||||
|
||||
<!-- <view style="display: flex;flex-direction: row;align-items: center; ">
|
||||
|
||||
@@ -287,12 +287,12 @@
|
||||
break;
|
||||
case "赠与我的":
|
||||
uni.navigateTo({
|
||||
url: '/pages/records/transferRecords',
|
||||
url: '/pages/records/transferRecords2',
|
||||
})
|
||||
break;
|
||||
case "我的转赠":
|
||||
uni.navigateTo({
|
||||
url: '/pages/records/transferRecords2',
|
||||
url: '/pages/records/transferRecords',
|
||||
})
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user