物流查询 动态产品提醒

main
lion 1 year ago
parent 990bb4bf1e
commit af52af22c8

@ -6,10 +6,9 @@
<view class="formSystem"> <view class="formSystem">
<view class="systemtop"> <view class="systemtop">
<view class="systemtitle">蟹太太提货系统</view> <view class="systemtitle">蟹太太提货系统</view>
<view class="systemtext"> <view class="systemtext" v-if="showHelp">
<text>2024年提货已开放!</text> <text style="width: 70%;margin: 0 auto;margin-top: 20rpx;">该产品于<text class="colorOrange">{{openDate}}</text><text
<text>自2024年<text class="colorOrange">9月25日</text> 至2024年<text class="colorOrange">{{endDate}}</text>可提货</text>
class="colorOrange">12月15日</text></text>
</view> </view>
</view> </view>
<view class="formChange"> <view class="formChange">
@ -55,6 +54,9 @@
}] }]
}, },
dateFalse:'', dateFalse:'',
showHelp:false,
openDate:'',
endDate:''
}; };
}, },
onLoad() { onLoad() {
@ -76,8 +78,15 @@
let today = this.$moment().format('YYYY-MM-DD') let today = this.$moment().format('YYYY-MM-DD')
console.log(today,open_date,this.$moment(today).isBefore(open_date)) console.log(today,open_date,this.$moment(today).isBefore(open_date))
if(open_date){ if(open_date){
this.openDate = this.$moment(res.card.sku.open).format('YYYY年MM月DD日')
this.endDate = this.$moment(res.card.sku.end).format('YYYY年MM月DD日')
this.showHelp = true
if(this.$moment(today).isBefore(open_date)){ if(this.$moment(today).isBefore(open_date)){
toast(this.dateFalse+',请于'+open_date+'再次提货',4000) if(!isNull(res.card.sku.help)){
toast(res.card.sku.help,4000)
}else{
toast(this.dateFalse,4000)
}
return return
} }
} }
@ -143,7 +152,7 @@
.systemtop { .systemtop {
padding-top: 80rpx; padding-top: 80rpx;
text-align: center; text-align: center;
padding-bottom: 58rpx; padding-bottom: 38rpx;
border-bottom: 1rpx dashed #a4a5a4; border-bottom: 1rpx dashed #a4a5a4;
position: relative; position: relative;
margin-bottom: 80rpx; margin-bottom: 80rpx;
@ -173,7 +182,7 @@
font-size: 36rpx; font-size: 36rpx;
font-weight: 700; font-weight: 700;
color: #b98b44; color: #b98b44;
margin-bottom: 25rpx; /* margin-bottom: 25rpx; */
} }
.systemtext text { .systemtext text {

@ -44,7 +44,7 @@
</view> </view>
<view class="ordertab"> <view class="ordertab">
<!-- --> <!-- -->
<text class="deleteorder" @click="copyText(item.express_number)" v-if="item.status==1"></text> <text class="deleteorder" @click="copyText(item)" v-if="item.status==1"></text>
<text class="deleteorder" @click="edit(item)" v-if="item.status===0"></text> <text class="deleteorder" @click="edit(item)" v-if="item.status===0"></text>
<text class="orderinform" @click="copyText(item,'send')"></text> <text class="orderinform" @click="copyText(item,'send')"></text>
</view> </view>
@ -143,7 +143,7 @@
if(type=='send'){ if(type=='send'){
message = `${item.contact}先生/女士,您兑换的${item.sku.name}${item.sku.specs})将于${item.send_date}发货,请保持电话${item.mobile}畅通。` message = `${item.contact}先生/女士,您兑换的${item.sku.name}${item.sku.specs})将于${item.send_date}发货,请保持电话${item.mobile}畅通。`
}else{ }else{
message = item message = item.express_number
} }
uni.setClipboardData({ uni.setClipboardData({
data: message, data: message,
@ -158,8 +158,25 @@
uni.showToast({ uni.showToast({
title: '单号复制成功', title: '单号复制成功',
icon: 'none', icon: 'none',
duration: 2000 duration: 2000,
}); });
if(item.express_type.appid){
setTimeout(function(){
uni.navigateToMiniProgram({
appId: item.express_type.appid, // appid
path: '', //
extraData: {
//
},
success(res) {
//
},
fail(err) {
//
}
})
},2000)
}
} }
}, },
fail: function(e) { fail: function(e) {

@ -15,7 +15,7 @@
<view class="exchange-brief"> <view class="exchange-brief">
<view class="qrCodebox"> <view class="qrCodebox">
<view class="codeimg"> <view class="codeimg">
<image show-menu-by-longpress src="../../static/ewmimg.jpg" mode="widthFix"></image> <image show-menu-by-longpress :src="img" mode="widthFix"></image>
</view> </view>
</view> </view>
<text class="taphold">长按扫码即可关注</text> <text class="taphold">长按扫码即可关注</text>
@ -44,8 +44,15 @@
export default{ export default{
data(){ data(){
return{ return{
img:''
}
},
onLoad(){
const banner4 = uni.getStorageSync('banner4')?uni.getStorageSync('banner4'):[]
if(banner4.length>0){
this.img = banner4[0].image
} }
}, },
methods:{ methods:{
toHome(){ toHome(){

@ -172,6 +172,16 @@
}) })
uni.setStorageSync('banner3',_arr) uni.setStorageSync('banner3',_arr)
} }
//
let _arr1 = []
if(res.banner4.length>0){
res.banner4.map(item=>{
_arr1.push({
image:item.upfile_url
})
})
uni.setStorageSync('banner4',_arr1)
}
// //
uni.setStorageSync('configs',res.config) uni.setStorageSync('configs',res.config)
}, },

@ -11,7 +11,7 @@
</view> </view>
<view class="qrCodebox"> <view class="qrCodebox">
<view class="codeimg"> <view class="codeimg">
<image show-menu-by-longpress src="../../static/ewmimg.jpg" mode="widthFix"></image> <image show-menu-by-longpress :src="img" mode="widthFix"></image>
</view> </view>
</view> </view>
<view class="textbottom">长按扫码添加企业微信</view> <view class="textbottom">长按扫码添加企业微信</view>
@ -27,7 +27,19 @@
export default { export default {
components: { components: {
tabbar tabbar
},
data(){
return{
img:''
} }
},
onLoad(){
const banner4 = uni.getStorageSync('banner4')?uni.getStorageSync('banner4'):[]
if(banner4.length>0){
this.img = banner4[0].image
}
},
} }
</script> </script>
<style type="text/css" scoped> <style type="text/css" scoped>

Loading…
Cancel
Save