|
@@ -17,22 +17,24 @@
|
|
<u-notice-bar mode="vertical" :list="noticebarList" style="width: 710rpx;" type="primary"></u-notice-bar>
|
|
<u-notice-bar mode="vertical" :list="noticebarList" style="width: 710rpx;" type="primary"></u-notice-bar>
|
|
</view>
|
|
</view>
|
|
<view class="u-flex u-m-t-20 u-row-around u-m-l-10 u-m-r-10">
|
|
<view class="u-flex u-m-t-20 u-row-around u-m-l-10 u-m-r-10">
|
|
- <u-image width="350rpx" src="../../static/sailun/scan_in.png" @click="scancodeIn" mode="widthFix" class="u-skeleton-fillet"></u-image>
|
|
|
|
- <u-image width="350rpx" src="../../static/sailun/scan_out.png" @click="scancodeOut" mode="widthFix" class="u-skeleton-fillet"></u-image>
|
|
|
|
|
|
+ <u-image width="350rpx" src="../../static/sailun/scan_in.png" @tap="$u.throttle(inPage(0), 1000)" mode="widthFix"
|
|
|
|
+ class="u-skeleton-fillet"></u-image>
|
|
|
|
+ <u-image width="350rpx" src="../../static/sailun/scan_out.png" @tap="$u.throttle(inPage(1), 1000)" mode="widthFix"
|
|
|
|
+ class="u-skeleton-fillet"></u-image>
|
|
</view>
|
|
</view>
|
|
<view class="u-m-t-20">
|
|
<view class="u-m-t-20">
|
|
<view class="u-m-l-30" style="font-size: 34rpx;">
|
|
<view class="u-m-l-30" style="font-size: 34rpx;">
|
|
快捷服务
|
|
快捷服务
|
|
</view>
|
|
</view>
|
|
<view class="u-flex u-flex-wrap u-row-center">
|
|
<view class="u-flex u-flex-wrap u-row-center">
|
|
- <u-image class="u-skeleton-fillet" width="350rpx" height="212rpx" src="../../static/sailun/1.png" style="margin: 10rpx;box-shadow:0rpx 0rpx 20rpx rgba(0,0,0,0.2);border-radius: 30rpx;"
|
|
|
|
- @click="inStock"></u-image>
|
|
|
|
|
|
+ <u-image class="u-skeleton-fillet" width="350rpx" height="212rpx" src="../../static/sailun/task.png" style="margin: 10rpx;box-shadow:0rpx 0rpx 20rpx rgba(0,0,0,0.2);border-radius: 30rpx;"
|
|
|
|
+ @click="inPage(5)"></u-image>
|
|
<u-image class="u-skeleton-fillet" width="350rpx" height="212rpx" src="../../static/sailun/2.png" style="margin: 10rpx;box-shadow:0rpx 0rpx 20rpx rgba(0,0,0,0.2);border-radius: 30rpx;"
|
|
<u-image class="u-skeleton-fillet" width="350rpx" height="212rpx" src="../../static/sailun/2.png" style="margin: 10rpx;box-shadow:0rpx 0rpx 20rpx rgba(0,0,0,0.2);border-radius: 30rpx;"
|
|
- @click="inMonthlyPolicy"></u-image>
|
|
|
|
- <u-image class="u-skeleton-fillet" width="350rpx" height="212rpx" src="../../static/sailun/3.png" style="margin: 10rpx;box-shadow:0rpx 0rpx 20rpx rgba(0,0,0,0.2);border-radius: 30rpx;"
|
|
|
|
- @click="inInlineshop"></u-image>
|
|
|
|
- <u-image class="u-skeleton-fillet" width="350rpx" height="212rpx" src="../../static/sailun/4.png" style="margin: 10rpx;box-shadow:0rpx 0rpx 20rpx rgba(0,0,0,0.2);border-radius: 30rpx;"
|
|
|
|
- @click="inIntegral"></u-image>
|
|
|
|
|
|
+ @click="inPage(3)"></u-image>
|
|
|
|
+ <u-image class="u-skeleton-fillet" width="350rpx" height="212rpx" src="../../static/sailun/inquire.png" style="margin: 10rpx;box-shadow:0rpx 0rpx 20rpx rgba(0,0,0,0.2);border-radius: 30rpx;"
|
|
|
|
+ @click="inPage(4)"></u-image>
|
|
|
|
+ <u-image class="u-skeleton-fillet" width="350rpx" height="212rpx" src="../../static/sailun/1.png" style="margin: 10rpx;box-shadow:0rpx 0rpx 20rpx rgba(0,0,0,0.2);border-radius: 30rpx;"
|
|
|
|
+ @click="inPage(2)"></u-image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="u-flex u-row-center u-m-t-30">
|
|
<view class="u-flex u-row-center u-m-t-30">
|
|
@@ -156,7 +158,7 @@
|
|
// console.log("已是最新版本")
|
|
// console.log("已是最新版本")
|
|
} else if (wgtinfo.version != res.data.forceVersion) {
|
|
} else if (wgtinfo.version != res.data.forceVersion) {
|
|
// console.log("强制版本更新"+res)
|
|
// console.log("强制版本更新"+res)
|
|
- res.data.msg = res.data.msg.replace(/\\n/g,"\n")
|
|
|
|
|
|
+ res.data.msg = res.data.msg.replace(/\\n/g, "\n")
|
|
uni.showModal({
|
|
uni.showModal({
|
|
title: "发现新版本",
|
|
title: "发现新版本",
|
|
content: res.data.msg,
|
|
content: res.data.msg,
|
|
@@ -178,14 +180,14 @@
|
|
})
|
|
})
|
|
} else if (wgtinfo.version == res.data.forceVersion) {
|
|
} else if (wgtinfo.version == res.data.forceVersion) {
|
|
console.log("最低版本更新")
|
|
console.log("最低版本更新")
|
|
- res.data.msg = res.data.msg.replace(/\\n/g,"\n")
|
|
|
|
|
|
+ res.data.msg = res.data.msg.replace(/\\n/g, "\n")
|
|
uni.showModal({
|
|
uni.showModal({
|
|
title: "发现新版本",
|
|
title: "发现新版本",
|
|
content: res.data.msg,
|
|
content: res.data.msg,
|
|
showCancel: true,
|
|
showCancel: true,
|
|
confirmText: "立即去AppStore更新",
|
|
confirmText: "立即去AppStore更新",
|
|
success: function(res) {
|
|
success: function(res) {
|
|
- if (res.confirm) {
|
|
|
|
|
|
+ if (res.confirm) {
|
|
console.log('用户点击确定');
|
|
console.log('用户点击确定');
|
|
let appleId = 1518555723
|
|
let appleId = 1518555723
|
|
plus.runtime.launchApplication({
|
|
plus.runtime.launchApplication({
|
|
@@ -284,25 +286,51 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- scancodeIn() {
|
|
|
|
- this.$u.route({
|
|
|
|
- url: 'pages/home/scancode/index',
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- scancodeOut() {
|
|
|
|
- this.$u.route({
|
|
|
|
- url: 'pages/home/scancode/scancodeout',
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- inStock() {
|
|
|
|
- this.$u.route({
|
|
|
|
- url: 'pages/home/my-stock/my-stock',
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- inMonthlyPolicy() {
|
|
|
|
- this.$u.route({
|
|
|
|
- url: 'pages/home/monthly-policy/monthly-policy',
|
|
|
|
- })
|
|
|
|
|
|
+ inPage(index) {
|
|
|
|
+ switch (index) {
|
|
|
|
+ case 0:
|
|
|
|
+ {
|
|
|
|
+ this.$u.route({
|
|
|
|
+ url: 'pages/home/scancode/index',
|
|
|
|
+ })
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ case 1:
|
|
|
|
+ {
|
|
|
|
+ this.$u.route({
|
|
|
|
+ url: 'pages/home/scancode/scancodeout',
|
|
|
|
+ })
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ case 2:
|
|
|
|
+ {
|
|
|
|
+ this.$u.route({
|
|
|
|
+ url: 'pages/home/my-stock/my-stock',
|
|
|
|
+ })
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ case 3:
|
|
|
|
+ {
|
|
|
|
+ this.$u.route({
|
|
|
|
+ url: 'pages/home/monthly-policy/monthly-policy',
|
|
|
|
+ })
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ case 4:
|
|
|
|
+ {
|
|
|
|
+ this.$u.route({
|
|
|
|
+ url: 'pages/home/scancodequery/result',
|
|
|
|
+ })
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ case 5:
|
|
|
|
+ {
|
|
|
|
+ this.$u.route({
|
|
|
|
+ url: 'pages/home/Statistical-task/index',
|
|
|
|
+ })
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
},
|
|
},
|
|
inInlineshop() {
|
|
inInlineshop() {
|
|
this.$u.toast('线上订货暂不开放');
|
|
this.$u.toast('线上订货暂不开放');
|