11111
This commit is contained in:
13
pages.json
13
pages.json
@@ -366,6 +366,19 @@
|
|||||||
"navigationBarTitleText": "转赠亲友",
|
"navigationBarTitleText": "转赠亲友",
|
||||||
"disableScroll": true
|
"disableScroll": true
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path" : "pages/home/newUserPlay",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path" : "pages/records/recommendRecords",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom",
|
||||||
|
"disableScroll": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -95,50 +95,50 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
// let _this = this;
|
let _this = this;
|
||||||
// wx.login({
|
wx.login({
|
||||||
// success: function(res) {
|
success: function(res) {
|
||||||
// uni.request({
|
uni.request({
|
||||||
// // 组装请求地址
|
// 组装请求地址
|
||||||
// url: getApp().globalData.wxSilentLoginURL + "?wxCode=" + res.code,
|
url: getApp().globalData.wxSilentLoginURL + "?wxCode=" + res.code,
|
||||||
// method: "GET",
|
method: "GET",
|
||||||
// header: {
|
header: {
|
||||||
// 'content-type': "application/x-www-form-urlencoded"
|
'content-type': "application/x-www-form-urlencoded"
|
||||||
// },
|
},
|
||||||
// data: {
|
data: {
|
||||||
// "wxCode": res.code
|
"wxCode": res.code
|
||||||
// },
|
},
|
||||||
// success: res => {
|
success: res => {
|
||||||
// if (res.statusCode == 200) {
|
if (res.statusCode == 200) {
|
||||||
// if (!res.data.success) {
|
if (!res.data.success) {
|
||||||
// if (res.data.code == "110") {
|
if (res.data.code == "110") {
|
||||||
// // 需要绑定手机号
|
// 需要绑定手机号
|
||||||
// uni.reLaunch({
|
uni.reLaunch({
|
||||||
// url: '/pages/index/BindPhone?openid=' +
|
url: '/pages/index/BindPhone?openid=' +
|
||||||
// res.data.data.wxMpOpenid
|
res.data.data.wxMpOpenid
|
||||||
// })
|
})
|
||||||
// } else {
|
} else {
|
||||||
// // _this.status = 'more'
|
// _this.status = 'more'
|
||||||
// }
|
}
|
||||||
// } else {
|
} else {
|
||||||
// // 成功后跳转主页
|
// 成功后跳转主页
|
||||||
// getApp().globalData.sid = res.data.data.sid
|
getApp().globalData.sid = res.data.data.sid
|
||||||
// _this.page.customerSid = getApp().globalData.sid
|
_this.page.customerSid = getApp().globalData.sid
|
||||||
// console.log("用户sid", getApp().globalData.sid)
|
console.log("用户sid", getApp().globalData.sid)
|
||||||
// }
|
}
|
||||||
// } else {
|
} else {
|
||||||
// // _this.status = 'more'
|
// _this.status = 'more'
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
// fail: (err) => {
|
fail: (err) => {
|
||||||
// // _this.status = 'more'
|
// _this.status = 'more'
|
||||||
// }
|
}
|
||||||
// });
|
});
|
||||||
// },
|
},
|
||||||
// fail: function(res) {
|
fail: function(res) {
|
||||||
// // _this.status = 'more'
|
// _this.status = 'more'
|
||||||
// }
|
}
|
||||||
// });
|
});
|
||||||
|
|
||||||
if (options) {
|
if (options) {
|
||||||
console.log("options", options)
|
console.log("options", options)
|
||||||
|
|||||||
@@ -218,6 +218,9 @@
|
|||||||
that.data.splice(index, 1)
|
that.data.splice(index, 1)
|
||||||
// that.getallPrice()
|
// that.getallPrice()
|
||||||
// that.getweight()
|
// that.getweight()
|
||||||
|
|
||||||
|
that.notData = that.data.length == 0
|
||||||
|
|
||||||
that.upDateShoppCart(item)
|
that.upDateShoppCart(item)
|
||||||
} else if (res.cancel) {
|
} else if (res.cancel) {
|
||||||
|
|
||||||
|
|||||||
@@ -223,14 +223,89 @@
|
|||||||
<view class="model" catchtouchmove='preventTouchMove' v-if='showModal'></view>
|
<view class="model" catchtouchmove='preventTouchMove' v-if='showModal'></view>
|
||||||
<view class="modalDlg" catchtouchmove='preventTouchMove' v-if='showModal'>
|
<view class="modalDlg" catchtouchmove='preventTouchMove' v-if='showModal'>
|
||||||
<view style="display: flex;flex-direction: column;justify-content: center;align-items: center;">
|
<view style="display: flex;flex-direction: column;justify-content: center;align-items: center;">
|
||||||
<image :src="modalUrl" style="width:80vw; height: 80vh;" mode="scaleToFill"></image>
|
<image src="https://supervise.yxtsoft.com/lpk/image/newpor_gift.png" mode="aspectFill"
|
||||||
|
style="margin-left: 5vw;margin-right: 5vw;margin-top: -50px;"></image>
|
||||||
|
|
||||||
|
<image src="https://supervise.yxtsoft.com/lpk/image/newpor_btn.png" mode="aspectFill"
|
||||||
|
style="width: 180px;height: 50px;margin-top: 20px;" @click="showGift()"></image>
|
||||||
|
|
||||||
<image src="../../static/close.png" mode="aspectFill" style="width: 28px;height: 28px;margin-top: 10px;"
|
<image src="../../static/close.png" mode="aspectFill" style="width: 28px;height: 28px;margin-top: 10px;"
|
||||||
@click="colseDialog()"></image>
|
@click="colseDialog()"></image>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
<!-- 礼包列表弹框 -->
|
||||||
|
<view class="model" catchtouchmove='preventTouchMove' v-if='showModal2'></view>
|
||||||
|
<view class="modalDlg2" catchtouchmove='preventTouchMove' v-if='showModal2'>
|
||||||
|
<view style="display: flex;flex-direction: column;
|
||||||
|
background: #fff; width: 80%; border-radius: 20px; height: 80vw;">
|
||||||
|
|
||||||
|
<image src="https://supervise.yxtsoft.com/lpk/image/newpor_top.png" mode="scaleToFill"
|
||||||
|
style="width: 100%; height: 15vw; flex-shrink: 0;"></image>
|
||||||
|
|
||||||
|
|
||||||
|
<scroll-view scroll-y="true" style="display: flex;flex-direction: column;height: calc(100% - 30vw);"
|
||||||
|
bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll">
|
||||||
|
|
||||||
|
|
||||||
|
<radio-group @change="radioChange" style="overflow: hidden;box-sizing: border-box;">
|
||||||
|
|
||||||
|
<view v-for="(item,index) in newPerGiftList" class="device-list" style="overflow-y: auto;">
|
||||||
|
<view style="">
|
||||||
|
<radio :value="item.sid" style="transform:scale(0.8)" color="#FF9900" />
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view
|
||||||
|
style="margin-left: 5px; margin-right: 10px; display: flex;flex-direction: row;align-items: center;flex: 1; ">
|
||||||
|
|
||||||
|
<image :src="item.iconUrl" mode="aspectFill"
|
||||||
|
style="border-radius: 8px;width: 46px;height: 46px;"></image>
|
||||||
|
|
||||||
|
<view style="display: flex;flex-direction: column; margin-left: 10px; flex: 1;">
|
||||||
|
|
||||||
|
<view
|
||||||
|
style="display: flex;flex-direction: row;align-items: center;box-sizing: border-box;">
|
||||||
|
|
||||||
|
<text style="font-size: 14px;color: #101010;margin-right: 10px;
|
||||||
|
flex: 1; ">{{item.name}}</text>
|
||||||
|
<text
|
||||||
|
style="font-size: 16px;color: #FF5006;font-weight: 600; flex-shrink:0;">¥{{item.prefPrice}}</text>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view
|
||||||
|
style="display: flex;flex-direction: row;align-items: center;margin-top: 15px;">
|
||||||
|
|
||||||
|
<text style="font-size: 12px;color: #666;flex: 1;">{{item.weight}}斤</text>
|
||||||
|
<text
|
||||||
|
style="font-size: 12px;color: #999;text-decoration:line-through;margin-left: 10px;">¥{{item.price}}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
</radio-group>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</scroll-view>
|
||||||
|
|
||||||
|
<view
|
||||||
|
style=" height: 15vw; flex-shrink: 0;display: flex;flex-direction: row;align-items: center;justify-content: center;"
|
||||||
|
class="newpor_bom">
|
||||||
|
<text style="background: #FF9900;color: #fff;text-align: center;border-radius: 20px;
|
||||||
|
padding:8px 25px ;" @click="newporGift">确认结算</text>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<image src="../../static/close.png" mode="aspectFill" style="width: 28px;height: 28px;margin-top: 10px;"
|
||||||
|
@click="colseDialog2()"></image>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -240,10 +315,13 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
showModal: false,
|
|
||||||
modalUrl: "https://supervise.yxtsoft.com/lpk/image/banner.png",
|
|
||||||
imgList: [],
|
imgList: [],
|
||||||
notData: false,
|
notData: false,
|
||||||
|
showModal: false,
|
||||||
|
showModal2: false,
|
||||||
|
newPerGiftList: [
|
||||||
|
|
||||||
|
],
|
||||||
dialogContent: "这里是协议内容,这里是协议内容,这里是协议内容,这里是协议内容,这里是协议内容,这里是协议内容,这里是协议内容,这里是协议内容这里是协议内容,这里是协议内容",
|
dialogContent: "这里是协议内容,这里是协议内容,这里是协议内容,这里是协议内容,这里是协议内容,这里是协议内容,这里是协议内容,这里是协议内容这里是协议内容,这里是协议内容",
|
||||||
confirmText: "我知道了(5s)",
|
confirmText: "我知道了(5s)",
|
||||||
dialogBeforeClose: false,
|
dialogBeforeClose: false,
|
||||||
@@ -300,6 +378,12 @@
|
|||||||
if (this.baseDataSuccess) {
|
if (this.baseDataSuccess) {
|
||||||
this.getgoods()
|
this.getgoods()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log("isPurchase", getApp().globalData.isPurchase);
|
||||||
|
|
||||||
|
if (getApp().globalData.isPurchase == '1')
|
||||||
|
this.showModal = true
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
@@ -319,6 +403,58 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
showGift() {
|
||||||
|
let _this = this
|
||||||
|
|
||||||
|
_this.$api.newUserQuota().then((resp) => {
|
||||||
|
// console.log("--------", resp);
|
||||||
|
_this.newPerGiftList = resp
|
||||||
|
|
||||||
|
_this.showModal = false
|
||||||
|
_this.showModal2 = true
|
||||||
|
|
||||||
|
}).catch(e => {
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
},
|
||||||
|
radioChange(event) {
|
||||||
|
// console.log("radioChange", event.detail.value);
|
||||||
|
this.newporGiftSid = event.detail.value
|
||||||
|
},
|
||||||
|
newporGift() {
|
||||||
|
// console.log("radioChange", this.newporGiftSid);
|
||||||
|
if (!this.newporGiftSid) {
|
||||||
|
this.shortToast('请先选择优惠礼包')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var params = {
|
||||||
|
customerSid: getApp().globalData.sid,
|
||||||
|
bagSid: this.newporGiftSid,
|
||||||
|
|
||||||
|
}
|
||||||
|
// console.log("params", params);
|
||||||
|
|
||||||
|
let _this = this
|
||||||
|
_this.$api.createNewUserBagOrder(params).then((resp) => {
|
||||||
|
|
||||||
|
// console.log("resp", resp);
|
||||||
|
_this.$pay(resp)
|
||||||
|
_this.showModal2 = false
|
||||||
|
getApp().globalData.isPurchase = '0'
|
||||||
|
|
||||||
|
console.log("isPurchase", getApp().globalData.isPurchase);
|
||||||
|
}).catch(e => {})
|
||||||
|
|
||||||
|
|
||||||
|
},
|
||||||
|
colseDialog() {
|
||||||
|
this.showModal = false
|
||||||
|
},
|
||||||
|
colseDialog2() {
|
||||||
|
this.showModal2 = false
|
||||||
|
},
|
||||||
getBannerList() {
|
getBannerList() {
|
||||||
let _this = this
|
let _this = this
|
||||||
_this.$api.bannerList().then((resp) => {
|
_this.$api.bannerList().then((resp) => {
|
||||||
@@ -328,9 +464,10 @@
|
|||||||
},
|
},
|
||||||
swiperClick(item) {
|
swiperClick(item) {
|
||||||
console.log("swiperClick======", item);
|
console.log("swiperClick======", item);
|
||||||
this.modalUrl = item.contentUrl
|
|
||||||
if (item.contentUrl != '') {
|
if (item.contentUrl != '') {
|
||||||
this.showModal = true
|
uni.navigateTo({
|
||||||
|
url: "/pages/home/newUserPlay?url=" + encodeURIComponent(JSON.stringify(item.contentUrl))
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
@@ -756,6 +893,39 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.modalDlg2 {
|
||||||
|
/* 设置超出滚动 */
|
||||||
|
overflow: auto;
|
||||||
|
position: fixed;
|
||||||
|
z-index: 100000;
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.device-list {
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 26rpx 6%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.newpor_bom {
|
||||||
|
/* 加载背景图 */
|
||||||
|
background-image: url(https://supervise.yxtsoft.com/lpk/image/newpor_bom.png);
|
||||||
|
/* background-image: url(../../static/clound_bj1.png); */
|
||||||
|
/* 让背景图基于容器大小伸缩 */
|
||||||
|
background-size: 100% 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.top {
|
.top {
|
||||||
|
|
||||||
|
|||||||
@@ -165,91 +165,6 @@
|
|||||||
|
|
||||||
</loading-state>
|
</loading-state>
|
||||||
|
|
||||||
<!-- 弹窗蒙版 -->
|
|
||||||
<view class="model" catchtouchmove='preventTouchMove' v-if='showModal'></view>
|
|
||||||
<view class="modalDlg" catchtouchmove='preventTouchMove' v-if='showModal'>
|
|
||||||
<view style="display: flex;flex-direction: column;justify-content: center;align-items: center;">
|
|
||||||
<image src="https://supervise.yxtsoft.com/lpk/image/newpor_gift.png" mode="aspectFill"
|
|
||||||
style="margin-left: 5vw;margin-right: 5vw;margin-top: -50px;"></image>
|
|
||||||
|
|
||||||
<image src="https://supervise.yxtsoft.com/lpk/image/newpor_btn.png" mode="aspectFill"
|
|
||||||
style="width: 180px;height: 50px;margin-top: 20px;" @click="showGift()"></image>
|
|
||||||
|
|
||||||
<image src="../../static/close.png" mode="aspectFill" style="width: 28px;height: 28px;margin-top: 10px;"
|
|
||||||
@click="colseDialog()"></image>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
</view>
|
|
||||||
<!-- 礼包列表弹框 -->
|
|
||||||
<view class="model" catchtouchmove='preventTouchMove' v-if='showModal2'></view>
|
|
||||||
<view class="modalDlg2" catchtouchmove='preventTouchMove' v-if='showModal2'>
|
|
||||||
<view style="display: flex;flex-direction: column;
|
|
||||||
background: #fff; width: 80%; border-radius: 20px; height: 80vw;">
|
|
||||||
|
|
||||||
<image src="https://supervise.yxtsoft.com/lpk/image/newpor_top.png" mode="scaleToFill"
|
|
||||||
style="width: 100%; height: 15vw; flex-shrink: 0;"></image>
|
|
||||||
|
|
||||||
|
|
||||||
<scroll-view scroll-y="true" style="display: flex;flex-direction: column;height: calc(100% - 30vw);"
|
|
||||||
bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll">
|
|
||||||
|
|
||||||
|
|
||||||
<radio-group @change="radioChange" style="overflow: hidden;box-sizing: border-box;">
|
|
||||||
|
|
||||||
<view v-for="(item,index) in newPerGiftList" class="device-list" style="overflow-y: auto;">
|
|
||||||
<view style="">
|
|
||||||
<radio :value="item.sid" style="transform:scale(0.8)" color="#FF9900" />
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<view
|
|
||||||
style="margin-left: 5px; margin-right: 10px; display: flex;flex-direction: row;align-items: center;flex: 1; ">
|
|
||||||
|
|
||||||
<image :src="item.iconUrl" mode="aspectFill"
|
|
||||||
style="border-radius: 8px;width: 46px;height: 46px;"></image>
|
|
||||||
|
|
||||||
<view style="display: flex;flex-direction: column; margin-left: 10px; flex: 1;">
|
|
||||||
|
|
||||||
<view
|
|
||||||
style="display: flex;flex-direction: row;align-items: center;box-sizing: border-box;">
|
|
||||||
|
|
||||||
<text style="font-size: 14px;color: #101010;margin-right: 10px;
|
|
||||||
flex: 1; ">{{item.name}}</text>
|
|
||||||
<text
|
|
||||||
style="font-size: 16px;color: #FF5006;font-weight: 600; flex-shrink:0;">¥{{item.prefPrice}}</text>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<view
|
|
||||||
style="display: flex;flex-direction: row;align-items: center;margin-top: 15px;">
|
|
||||||
|
|
||||||
<text style="font-size: 12px;color: #666;flex: 1;">{{item.weight}}斤</text>
|
|
||||||
<text
|
|
||||||
style="font-size: 12px;color: #999;text-decoration:line-through;margin-left: 10px;">¥{{item.price}}</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
</view>
|
|
||||||
|
|
||||||
</view>
|
|
||||||
</radio-group>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</scroll-view>
|
|
||||||
|
|
||||||
<view
|
|
||||||
style=" height: 15vw; flex-shrink: 0;display: flex;flex-direction: row;align-items: center;justify-content: center;"
|
|
||||||
class="newpor_bom">
|
|
||||||
<text style="background: #FF9900;color: #fff;text-align: center;border-radius: 20px;
|
|
||||||
padding:8px 25px ;" @click="newporGift">确认结算</text>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<image src="../../static/close.png" mode="aspectFill" style="width: 28px;height: 28px;margin-top: 10px;"
|
|
||||||
@click="colseDialog2()"></image>
|
|
||||||
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<!-- 转赠弹框 -->
|
<!-- 转赠弹框 -->
|
||||||
<view class="model" catchtouchmove='preventTouchMove' v-if='showModal3' @click="colseDialog3()"></view>
|
<view class="model" catchtouchmove='preventTouchMove' v-if='showModal3' @click="colseDialog3()"></view>
|
||||||
@@ -404,8 +319,6 @@
|
|||||||
butdisabled: true,
|
butdisabled: true,
|
||||||
transferNotData: true,
|
transferNotData: true,
|
||||||
notData: false,
|
notData: false,
|
||||||
showModal: false,
|
|
||||||
showModal2: false,
|
|
||||||
showModal3: false,
|
showModal3: false,
|
||||||
showModal4: false,
|
showModal4: false,
|
||||||
scrollHeight: "",
|
scrollHeight: "",
|
||||||
@@ -461,8 +374,7 @@
|
|||||||
created() {
|
created() {
|
||||||
|
|
||||||
// console.log("==========", getApp().globalData.isNewUser);
|
// console.log("==========", getApp().globalData.isNewUser);
|
||||||
if (getApp().globalData.isPurchase == '1')
|
|
||||||
this.showModal = true
|
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
if (typeof this.$mp.page.getTabBar === 'function' && this.$mp.page.getTabBar()) {
|
if (typeof this.$mp.page.getTabBar === 'function' && this.$mp.page.getTabBar()) {
|
||||||
@@ -708,54 +620,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
showGift() {
|
|
||||||
let _this = this
|
|
||||||
|
|
||||||
_this.$api.newUserQuota().then((resp) => {
|
|
||||||
// console.log("--------", resp);
|
|
||||||
_this.newPerGiftList = resp
|
|
||||||
|
|
||||||
_this.showModal = false
|
|
||||||
_this.showModal2 = true
|
|
||||||
}).catch(e => {
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
},
|
|
||||||
radioChange(event) {
|
|
||||||
// console.log("radioChange", event.detail.value);
|
|
||||||
this.newporGiftSid = event.detail.value
|
|
||||||
},
|
|
||||||
newporGift() {
|
|
||||||
// console.log("radioChange", this.newporGiftSid);
|
|
||||||
if (!this.newporGiftSid) {
|
|
||||||
this.shortToast('请先选择优惠礼包')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
var params = {
|
|
||||||
customerSid: getApp().globalData.sid,
|
|
||||||
bagSid: this.newporGiftSid,
|
|
||||||
|
|
||||||
}
|
|
||||||
// console.log("params", params);
|
|
||||||
|
|
||||||
let _this = this
|
|
||||||
_this.$api.createNewUserBagOrder(params).then((resp) => {
|
|
||||||
|
|
||||||
// console.log("resp", resp);
|
|
||||||
_this.$pay(resp)
|
|
||||||
_this.showModal2 = false
|
|
||||||
}).catch(e => {})
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
colseDialog() {
|
|
||||||
this.showModal = false
|
|
||||||
},
|
|
||||||
colseDialog2() {
|
|
||||||
this.showModal2 = false
|
|
||||||
},
|
|
||||||
colseDialog3() {
|
colseDialog3() {
|
||||||
this.showModal3 = false
|
this.showModal3 = false
|
||||||
},
|
},
|
||||||
@@ -876,14 +741,6 @@
|
|||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.newpor_bom {
|
|
||||||
/* 加载背景图 */
|
|
||||||
background-image: url(https://supervise.yxtsoft.com/lpk/image/newpor_bom.png);
|
|
||||||
/* background-image: url(../../static/clound_bj1.png); */
|
|
||||||
/* 让背景图基于容器大小伸缩 */
|
|
||||||
background-size: 100% 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.top {
|
.top {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
|
|||||||
@@ -18,10 +18,12 @@
|
|||||||
style="width: 30px;height: 30px;margin-right: 10px;flex-shrink: 0;" :rotate="0"></image>
|
style="width: 30px;height: 30px;margin-right: 10px;flex-shrink: 0;" :rotate="0"></image>
|
||||||
</view>
|
</view>
|
||||||
<view style="display: flex;flex-direction: row;align-items: center; width: 100%;
|
<view style="display: flex;flex-direction: row;align-items: center; width: 100%;
|
||||||
position: absolute;bottom: 8vw; " >
|
position: absolute;bottom: 8vw; ">
|
||||||
<view style="flex: 1;"></view>
|
<view style="flex: 1;"></view>
|
||||||
<view style="margin-right: 20px;display: flex;flex-direction: row;align-items: center;" @click="makePhoneCall()">
|
<view style="margin-right: 20px;display: flex;flex-direction: row;align-items: center;"
|
||||||
<image src="../../static/userService.png" style="width: 25px;height: 25px;margin-right: 5px;"></image>
|
@click="makePhoneCall()">
|
||||||
|
<image src="../../static/userService.png" style="width: 25px;height: 25px;margin-right: 5px;">
|
||||||
|
</image>
|
||||||
<text style="color: #fff;font-size: 16px;">客服电话</text>
|
<text style="color: #fff;font-size: 16px;">客服电话</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -147,7 +149,8 @@
|
|||||||
<view v-for="(child,pos) in recommend.vos" :key="pos" @click="recommendClick(child)"
|
<view v-for="(child,pos) in recommend.vos" :key="pos" @click="recommendClick(child)"
|
||||||
style="display: flex;flex-direction: column;width: 100%;box-sizing: border-box;">
|
style="display: flex;flex-direction: column;width: 100%;box-sizing: border-box;">
|
||||||
|
|
||||||
<text style="color: #424242; font-size: 13px;line-height: 25px;">* {{child.remarks}}</text>
|
<text style="color: #424242; font-size: 13px;line-height: 25px;">*
|
||||||
|
{{child.remarks}}</text>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -189,7 +192,7 @@
|
|||||||
},
|
},
|
||||||
headImage: "",
|
headImage: "",
|
||||||
recommend: {
|
recommend: {
|
||||||
vos:[]
|
vos: []
|
||||||
},
|
},
|
||||||
banKInfo: null
|
banKInfo: null
|
||||||
}
|
}
|
||||||
@@ -254,6 +257,10 @@
|
|||||||
},
|
},
|
||||||
recommendClick(item) {
|
recommendClick(item) {
|
||||||
console.log("recommendClick>>>", item)
|
console.log("recommendClick>>>", item)
|
||||||
|
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: '/pages/records/recommendRecords'
|
||||||
|
// })
|
||||||
},
|
},
|
||||||
showDiaLog() {
|
showDiaLog() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@@ -363,21 +370,21 @@
|
|||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case "待提菜":
|
case "待提菜":
|
||||||
uni.navigateTo({
|
|
||||||
url: '/pages/records/reservationRecords',
|
|
||||||
})
|
|
||||||
|
|
||||||
// uni.navigateTo({
|
// uni.navigateTo({
|
||||||
// url: '/pages/records/reservationRecords3',
|
// url: '/pages/records/reservationRecords',
|
||||||
// })
|
// })
|
||||||
|
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/records/reservationRecords3',
|
||||||
|
})
|
||||||
break;
|
break;
|
||||||
case "已提菜":
|
case "已提菜":
|
||||||
uni.navigateTo({
|
|
||||||
url: '/pages/records/reservationRecords2',
|
|
||||||
})
|
|
||||||
// uni.navigateTo({
|
// uni.navigateTo({
|
||||||
// url: '/pages/records/reservationRecords4',
|
// url: '/pages/records/reservationRecords2',
|
||||||
// })
|
// })
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/records/reservationRecords4',
|
||||||
|
})
|
||||||
break;
|
break;
|
||||||
case "我的订单":
|
case "我的订单":
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@@ -431,7 +438,8 @@
|
|||||||
/* 让背景图基于容器大小伸缩 */
|
/* 让背景图基于容器大小伸缩 */
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
|
|
||||||
position: relative;/*父元素位置要设置为相对*/
|
position: relative;
|
||||||
|
/*父元素位置要设置为相对*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 顶部-用户信息 */
|
/* 顶部-用户信息 */
|
||||||
@@ -465,9 +473,11 @@ position: relative;/*父元素位置要设置为相对*/
|
|||||||
|
|
||||||
/* 视图 */
|
/* 视图 */
|
||||||
.view {
|
.view {
|
||||||
box-sizing: border-box;margin-top: -15px;
|
box-sizing: border-box;
|
||||||
|
margin-top: -15px;
|
||||||
background: #F7F7F7;
|
background: #F7F7F7;
|
||||||
height: calc(100vh - 45px - 65vw);;
|
height: calc(100vh - 45px - 65vw);
|
||||||
|
;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
}
|
}
|
||||||
|
|||||||
32
pages/home/newUserPlay.vue
Normal file
32
pages/home/newUserPlay.vue
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
<template>
|
||||||
|
<view style="display: flex;flex-direction: column;width: 100%;height: 100%;box-sizing: border-box;">
|
||||||
|
|
||||||
|
<NavBar ref="nav" navTitle=" " :showIcon="true" >
|
||||||
|
</NavBar>
|
||||||
|
<image :src="page.url" style="width: 100%;height: 100vh;" mode="scaleToFill"></image>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
page:{
|
||||||
|
url:"",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad(options) {
|
||||||
|
console.log("options",options)
|
||||||
|
this.page.url = JSON.parse(decodeURIComponent(options.url))
|
||||||
|
console.log("as",this.page.url)
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -49,6 +49,7 @@
|
|||||||
this.status = "loading"
|
this.status = "loading"
|
||||||
let _this = this;
|
let _this = this;
|
||||||
|
|
||||||
|
|
||||||
wx.login({
|
wx.login({
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
uni.request({
|
uni.request({
|
||||||
|
|||||||
60
pages/records/recommendRecords.vue
Normal file
60
pages/records/recommendRecords.vue
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
<template>
|
||||||
|
<view style="display: flex;flex-direction: column; background: #F9F9F8;">
|
||||||
|
|
||||||
|
<NavBar ref="nav" navTitle=" " :showIcon="true">
|
||||||
|
</NavBar>
|
||||||
|
|
||||||
|
<image src="https://supervise.yxtsoft.com/lpk/image/recommend_icon.png" style="width: 100%;height: 60vw;">
|
||||||
|
</image>
|
||||||
|
|
||||||
|
<view style="margin-bottom: 50px; min-height: 70vh; background: #fff; margin-left: 15px;margin-right: 15px;margin-top: -20vw;
|
||||||
|
border-radius: 15px;">
|
||||||
|
<!-- 滚动视图 -->
|
||||||
|
<scroll-view scroll-y="true" style="padding: 10px; width: 100%; height: 100%;" bindscrolltoupper="upper" bindscrolltolower="lower"
|
||||||
|
bindscroll="scroll">
|
||||||
|
|
||||||
|
</scroll-view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
styleObject: {
|
||||||
|
'padding-top': '10px',
|
||||||
|
'padding-bottom': '10px',
|
||||||
|
'border-radius': '15px',
|
||||||
|
'background': '#f2f2f2'
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 分页的请求
|
||||||
|
queryList(pageNo, pageSize) {
|
||||||
|
let _this = this
|
||||||
|
_this.$api.myOrderListByUserSid({
|
||||||
|
"current": pageNo,
|
||||||
|
"size": pageSize,
|
||||||
|
"params": {
|
||||||
|
"customerSid": getApp().globalData.sid,
|
||||||
|
"state": '1', //0 未提货 1 已提货
|
||||||
|
|
||||||
|
}
|
||||||
|
}).then((resp) => {
|
||||||
|
// 添加数据源
|
||||||
|
this.$refs.paging.complete(resp.records)
|
||||||
|
}).catch(e => {
|
||||||
|
// 出错了,点击重试
|
||||||
|
_this.$refs.paging.complete(false);
|
||||||
|
})
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -44,8 +44,8 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view style="display: flex;flex-direction: row;align-items: center;margin-top: 8px;">
|
<view style="display: flex;flex-direction: row;align-items: center;margin-top: 8px;">
|
||||||
<text style="font-size: 12px;color: #999; margin-right: 5px;">预约时间:</text>
|
<text style="font-size: 12px;color: #999; margin-right: 5px;">预约日期:</text>
|
||||||
<text style="font-size: 12px;color: #333;">{{item.createTime}}</text>
|
<text style="font-size: 12px;color: #333;">{{item.reserveDate}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
@@ -76,12 +76,12 @@
|
|||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="item_btn" v-if="item.showLsit" @click="showList(item)">
|
<view class="item_btn" v-if="!item.showLsit" @click="showList(item)">
|
||||||
<text style="font-size: 12px;color: #999; margin-right: 5px;">展开</text>
|
<text style="font-size: 12px;color: #999; margin-right: 5px;">展开</text>
|
||||||
<image src="../../static/zhankai.png" style="width: 15px;height: 15px;"></image>
|
<image src="../../static/zhankai.png" style="width: 15px;height: 15px;"></image>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="item_btn" v-if="!item.showLsit" @click="showList(item)">
|
<view class="item_btn" v-if="item.showLsit" @click="showList(item)">
|
||||||
<text style="font-size: 12px;color: #999; margin-right: 5px;">收起</text>
|
<text style="font-size: 12px;color: #999; margin-right: 5px;">收起</text>
|
||||||
<image src="../../static/shouqi.png" style="width: 15px;height: 15px;"></image>
|
<image src="../../static/shouqi.png" style="width: 15px;height: 15px;"></image>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
<image src="../../static/time.png" style="width: 15px;height: 15px;margin-right: 5px;">
|
<image src="../../static/time.png" style="width: 15px;height: 15px;margin-right: 5px;">
|
||||||
</image>
|
</image>
|
||||||
<text style="font-size: 12px;color: #BBBBBB; margin-right: 5px;">提菜日期:</text>
|
<text style="font-size: 12px;color: #BBBBBB; margin-right: 5px;">提菜日期:</text>
|
||||||
<text style="font-size: 12px;color: #BBBBBB;">{{item.endTime}}</text>
|
<text style="font-size: 12px;color: #BBBBBB;">{{item.reserveDate}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view style="display: flex;flex-direction: row;align-items: center;margin-top: 20px;">
|
<view style="display: flex;flex-direction: row;align-items: center;margin-top: 20px;">
|
||||||
@@ -46,8 +46,8 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view style="display: flex;flex-direction: row;align-items: center;margin-top: 8px;">
|
<view style="display: flex;flex-direction: row;align-items: center;margin-top: 8px;">
|
||||||
<text style="font-size: 12px;color: #BBBBBB; margin-right: 5px;">预约时间:</text>
|
<text style="font-size: 12px;color: #BBBBBB; margin-right: 5px;">预约日期:</text>
|
||||||
<text style="font-size: 12px;color: #BBBBBB;">{{item.createTime}}</text>
|
<text style="font-size: 12px;color: #BBBBBB;">{{item.reserveDate}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
@@ -82,12 +82,12 @@
|
|||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="item_btn" v-if="item.showLsit" @click="showList(item)">
|
<view class="item_btn" v-if="!item.showLsit" @click="showList(item)">
|
||||||
<text style="font-size: 12px;color: #999; margin-right: 5px;">展开</text>
|
<text style="font-size: 12px;color: #999; margin-right: 5px;">展开</text>
|
||||||
<image src="../../static/zhankai.png" style="width: 15px;height: 15px;"></image>
|
<image src="../../static/zhankai.png" style="width: 15px;height: 15px;"></image>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="item_btn" v-if="!item.showLsit" @click="showList(item)">
|
<view class="item_btn" v-if="item.showLsit" @click="showList(item)">
|
||||||
<text style="font-size: 12px;color: #999; margin-right: 5px;">收起</text>
|
<text style="font-size: 12px;color: #999; margin-right: 5px;">收起</text>
|
||||||
<image src="../../static/shouqi.png" style="width: 15px;height: 15px;"></image>
|
<image src="../../static/shouqi.png" style="width: 15px;height: 15px;"></image>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
Reference in New Issue
Block a user