|
|
@@ -54,8 +54,10 @@
|
|
|
|
|
|
<!-- 散客和花店开单 -->
|
|
|
<view class="tabs-head_bx">
|
|
|
- <image @click="skKd()" :src="skSrc" mode="widthFix"></image>
|
|
|
- <image @click="pageTo({ url: '/admin/custom/selectCustom',query: {style:1}})" :src="pfSrc" mode="widthFix" ></image>
|
|
|
+ <image v-if="isScanEnv==false" @click="skKd()" :src="skSrc" mode="widthFix"></image>
|
|
|
+ <image v-else @click="skKd()" :src="skSrc3" mode="widthFix"></image>
|
|
|
+ <image v-if="isScanEnv==false" @click="customKd()" :src="pfSrc" mode="widthFix" ></image>
|
|
|
+ <image v-else @click="customKd()" :src="pfSrc3" mode="widthFix" ></image>
|
|
|
</view>
|
|
|
|
|
|
<!-- 使用手册 -->
|
|
|
@@ -120,6 +122,7 @@ export default {
|
|
|
AppAvatarModule,
|
|
|
noneHd,
|
|
|
loginModel,
|
|
|
+ isScanEnv:false
|
|
|
},
|
|
|
mixins: [productMins],
|
|
|
data() {
|
|
|
@@ -156,7 +159,9 @@ export default {
|
|
|
{ name: "总采购(元)", value: 0.00, url:'/admin/statistics/cgStat', type:1 }
|
|
|
],
|
|
|
skSrc: `${this.$constant.imgUrl}/ghs/home/sk.jpg`,
|
|
|
- pfSrc: `${this.$constant.imgUrl}/ghs/home/pf.jpg`
|
|
|
+ pfSrc: `${this.$constant.imgUrl}/ghs/home/pf.jpg`,
|
|
|
+ skSrc3: `${this.$constant.imgUrl}/ghs/home/sk3.jpg`,
|
|
|
+ pfSrc3: `${this.$constant.imgUrl}/ghs/home/pf3.jpg`
|
|
|
};
|
|
|
},
|
|
|
onShareAppMessage(res) {
|
|
|
@@ -172,7 +177,9 @@ export default {
|
|
|
...mapGetters({ myShopInfo: "getMyShopInfo" }),
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
-
|
|
|
+ if(this.$util.isScanEnv()){
|
|
|
+ this.isScanEnv = true
|
|
|
+ }
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
this.init();
|
|
|
@@ -239,6 +246,9 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+ customKd(){
|
|
|
+ this.pageTo({ url: '/admin/custom/selectCustom',query: {style:1}})
|
|
|
+ },
|
|
|
skKd(){
|
|
|
let that = this
|
|
|
let currentId = 0;
|
|
|
@@ -249,7 +259,11 @@ export default {
|
|
|
currentId = this.loginInfo.skCustomId
|
|
|
}
|
|
|
if(currentId > 0){
|
|
|
- this.$util.pageTo({url: "/admin/billing/index",query: {customId: currentId}})
|
|
|
+ if(this.$util.isScanEnv()){
|
|
|
+ this.$util.pageTo({url: "/admin/billing/affirm",query: {customId: currentId}})
|
|
|
+ }else{
|
|
|
+ this.$util.pageTo({url: "/admin/billing/index",query: {customId: currentId}})
|
|
|
+ }
|
|
|
}else{
|
|
|
that.$util.confirmModal({content:'请设置您的零售店',okText:'好的',cancelText:'取消'},() => {
|
|
|
that.$util.pageTo({url: '/admin/shop/sk'})
|