|
|
@@ -65,13 +65,12 @@
|
|
|
|
|
|
<!-- 客户按钮 -->
|
|
|
<view class="module-com">
|
|
|
+
|
|
|
<view class="tabs-head_bx">
|
|
|
- <image
|
|
|
- @click="pageTo({ url: '/admin/custom/selectCustom',query: {style:1}})"
|
|
|
- :src="kdSrc"
|
|
|
- mode="widthFix"
|
|
|
- ></image>
|
|
|
+ <image @click="skKd()" :src="skSrc" mode="widthFix"></image>
|
|
|
+ <image @click="pageTo({ url: '/admin/custom/selectCustom',query: {style:1}})" :src="pfSrc" mode="widthFix" ></image>
|
|
|
</view>
|
|
|
+
|
|
|
<div class="tabs-wrap">
|
|
|
<div class="tabs-list" v-for="(item, index) in tabsData" :key="index">
|
|
|
<div @click="goPage(item)">
|
|
|
@@ -270,8 +269,8 @@ export default {
|
|
|
value: 0.00
|
|
|
}
|
|
|
],
|
|
|
- cgSrc: `${this.$constant.imgUrl}/ghs/home/open_order.png`,
|
|
|
- kdSrc: `${this.$constant.imgUrl}/ghs/home/open_order.png`
|
|
|
+ skSrc: `${this.$constant.imgUrl}/ghs/home/sk.jpg`,
|
|
|
+ pfSrc: `${this.$constant.imgUrl}/ghs/home/pf.jpg`
|
|
|
};
|
|
|
},
|
|
|
onShareAppMessage(res) {
|
|
|
@@ -294,6 +293,7 @@ export default {
|
|
|
computed: {
|
|
|
...mapGetters({ userInfo: "getUser" }),
|
|
|
...mapGetters({ loginInfo: "getLoginInfo" }),
|
|
|
+ ...mapGetters({ myShopInfo: "getMyShopInfo" }),
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
},
|
|
|
@@ -304,6 +304,18 @@ export default {
|
|
|
onShow() {
|
|
|
},
|
|
|
methods: {
|
|
|
+ skKd(){
|
|
|
+ if(this.myShopInfo.skCustomId && this.myShopInfo.skCustomId > 0){
|
|
|
+ this.$util.pageTo({url: '/admin/billing/index',query: {customId: this.myShopInfo.skCustomId,customName:'散客开单'}})
|
|
|
+ }else{
|
|
|
+ uni.showToast({
|
|
|
+ title: "您还没有开通,请联系客服",
|
|
|
+ icon: 'none',
|
|
|
+ mask: true,
|
|
|
+ duration: 3000,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
init() {
|
|
|
|
|
|
getUser().then(res => {
|