|
|
@@ -76,7 +76,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
<view class="market">
|
|
|
<text class="title">数字化系统</text>
|
|
|
<view class="cu-list grid col-4 no-border margin-top-30">
|
|
|
@@ -93,8 +93,9 @@
|
|
|
|
|
|
<u-modal @confirm="$jump('/pages/member/member')" :show-cancel-button="true" confirm-color="#ff9447"
|
|
|
confirm-text="立即开启" cancel-text="暂不开启" v-model="isOpenMemberShow" content="请先创建会员中心"></u-modal>
|
|
|
-
|
|
|
- <u-select confirm-color="#EF9944" @confirm="shopConfirm" :default-value="defaultValue" v-model="shopShow" value-name="id" label-name="name" :list="shopList">
|
|
|
+
|
|
|
+ <u-select confirm-color="#EF9944" @confirm="shopConfirm" :default-value="defaultValue" v-model="shopShow"
|
|
|
+ value-name="id" label-name="name" :list="shopList">
|
|
|
</u-select>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -107,7 +108,7 @@
|
|
|
shopShow: false,
|
|
|
//我的商铺列表
|
|
|
shopList: [],
|
|
|
- defaultValue:[0],
|
|
|
+ defaultValue: [0],
|
|
|
//选中的商铺id
|
|
|
shopId: '',
|
|
|
//选中的商铺labe
|
|
|
@@ -167,8 +168,7 @@
|
|
|
icon: '/static/index/mendian.png',
|
|
|
name: '门店管理',
|
|
|
path: ''
|
|
|
- }
|
|
|
- , {
|
|
|
+ }, {
|
|
|
icon: '/static/index/waimai.png',
|
|
|
name: '外卖平台',
|
|
|
path: ''
|
|
|
@@ -221,7 +221,7 @@
|
|
|
return
|
|
|
}
|
|
|
if (this.$cache.get('defaultValue')) {
|
|
|
- this.defaultValue=this.$cache.get('defaultValue')
|
|
|
+ this.defaultValue = this.$cache.get('defaultValue')
|
|
|
}
|
|
|
this.shopList = res.data.records
|
|
|
let item = this.shopList[this.defaultValue[0]]
|
|
|
@@ -231,13 +231,13 @@
|
|
|
this.labelNames = item.labelNames
|
|
|
this.mallId = item.mallId
|
|
|
this.cacheSelectedShop(item)
|
|
|
-
|
|
|
+
|
|
|
this.getTaskDetail()
|
|
|
if (!this.isFirst) {
|
|
|
this.handelShopStatus()
|
|
|
}
|
|
|
- this.isFirst=true
|
|
|
-
|
|
|
+ this.isFirst = true
|
|
|
+
|
|
|
//获取统计数据
|
|
|
this.getStatistic()
|
|
|
},
|
|
|
@@ -268,10 +268,10 @@
|
|
|
shopConfirm(e) {
|
|
|
this.shopId = e[0].value
|
|
|
this.shopLable = e[0].label
|
|
|
- let item = this.shopList.filter((item,index) => {
|
|
|
+ let item = this.shopList.filter((item, index) => {
|
|
|
if (this.shopId == item.id) {
|
|
|
- this.defaultValue=[index]
|
|
|
- this.$cache.put('defaultValue',this.defaultValue)
|
|
|
+ this.defaultValue = [index]
|
|
|
+ this.$cache.put('defaultValue', this.defaultValue)
|
|
|
return true
|
|
|
}
|
|
|
})
|
|
|
@@ -283,14 +283,18 @@
|
|
|
//获取统计数据
|
|
|
this.getStatistic()
|
|
|
},
|
|
|
- jump(path){
|
|
|
- let flag=this.handelShopStatus()
|
|
|
+ jump(path) {
|
|
|
+ let flag = this.handelShopStatus()
|
|
|
if (this.$isNotEmpty(flag)) {
|
|
|
this.$jump(path)
|
|
|
}
|
|
|
},
|
|
|
operate(index) {
|
|
|
- let flag=this.handelShopStatus()
|
|
|
+ if (index == 2) {
|
|
|
+ this.$jump('/pages/card/card')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ let flag = this.handelShopStatus()
|
|
|
if (this.$isEmpty(flag)) {
|
|
|
return
|
|
|
}
|
|
|
@@ -303,12 +307,10 @@
|
|
|
this.$jump('/pages/pay/pay')
|
|
|
} else if (index == 1) {
|
|
|
this.$jump('/pages/checkstand/pay-qrcode')
|
|
|
- } else if (index == 2) {
|
|
|
- this.$jump('/pages/card/card')
|
|
|
}
|
|
|
},
|
|
|
handelShopStatus() {
|
|
|
- let _this=this
|
|
|
+ let _this = this
|
|
|
//商户审核通过
|
|
|
if (this.vuex_shopStatus == this.$global.SHOP_AUDIT.PASS) {
|
|
|
return true
|
|
|
@@ -316,16 +318,16 @@
|
|
|
//未完善商户资料
|
|
|
if (!this.vuex_shopStatus) {
|
|
|
uni.showModal({
|
|
|
- cancelText:'暂不完善',
|
|
|
- confirmText:'去完善',
|
|
|
- confirmColor:'#FF9447',
|
|
|
- cancelColor:'#606266',
|
|
|
- showCancel:true,
|
|
|
- title:'提示',
|
|
|
- content:'商户资料未完善',
|
|
|
+ cancelText: '暂不完善',
|
|
|
+ confirmText: '去完善',
|
|
|
+ confirmColor: '#FF9447',
|
|
|
+ cancelColor: '#606266',
|
|
|
+ showCancel: true,
|
|
|
+ title: '提示',
|
|
|
+ content: '商户资料未完善',
|
|
|
success: (res) => {
|
|
|
if (res.confirm) {
|
|
|
- this.$jump('/pages/shop-info/shop-info?phone'+ this.$cache.get('phone'))
|
|
|
+ this.$jump('/pages/shop-info/shop-info?phone' + this.$cache.get('phone'))
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
@@ -346,7 +348,7 @@
|
|
|
}
|
|
|
//商户已停用
|
|
|
if (this.vuex_shopStatus == this.$global.SHOP_AUDIT.STOP) {
|
|
|
- this.$dialog.showModal('该商户已停用',false)
|
|
|
+ this.$dialog.showModal('该商户已停用', false)
|
|
|
return
|
|
|
}
|
|
|
//待审核中
|
|
|
@@ -354,50 +356,52 @@
|
|
|
if (this.vuex_shopStatus == this.$global.SHOP_AUDIT.WAITING_SIGN) {
|
|
|
//待签约状态,去签约
|
|
|
uni.showModal({
|
|
|
- title: '提示',
|
|
|
- content: '商户资料审核通过,请进行签约?',
|
|
|
- cancelText:'暂不签约',
|
|
|
- confirmColor:'#FF9447',
|
|
|
- confirmText:'去签约',
|
|
|
- success: function (res) {
|
|
|
- if (res.confirm) {
|
|
|
- _this.$jump('/pages/webView/webView?url=' + _this.taskDetail.variables.signUrl)
|
|
|
- }
|
|
|
- }
|
|
|
+ title: '提示',
|
|
|
+ content: '商户资料审核通过,请进行签约?',
|
|
|
+ cancelText: '暂不签约',
|
|
|
+ confirmColor: '#FF9447',
|
|
|
+ confirmText: '去签约',
|
|
|
+ success: function(res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ _this.$jump('/pages/webView/webView?url=' + _this.taskDetail.variables
|
|
|
+ .signUrl)
|
|
|
+ }
|
|
|
+ }
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
if (this.vuex_shopStatus == this.$global.SHOP_AUDIT.WAITING_AUTH) {
|
|
|
//待商户认证状态
|
|
|
uni.showModal({
|
|
|
- title: '提示',
|
|
|
- content: '商户资料审核通过,请进行认证?',
|
|
|
- cancelText:'暂不认证',
|
|
|
- confirmColor:'#FF9447',
|
|
|
- confirmText:'去认证',
|
|
|
- success: function (res) {
|
|
|
- if (res.confirm) {
|
|
|
- _this.$jump('/pages/webView/webView?url=' + _this.taskDetail.variables.qrcodeUrl)
|
|
|
- }
|
|
|
- }
|
|
|
+ title: '提示',
|
|
|
+ content: '商户资料审核通过,请进行认证?',
|
|
|
+ cancelText: '暂不认证',
|
|
|
+ confirmColor: '#FF9447',
|
|
|
+ confirmText: '去认证',
|
|
|
+ success: function(res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ _this.$jump('/pages/webView/webView?url=' + _this.taskDetail.variables
|
|
|
+ .qrcodeUrl)
|
|
|
+ }
|
|
|
+ }
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
//待商场审核,待平台审核,待易宝审核状态下,去审核流程详情页
|
|
|
uni.showModal({
|
|
|
- title: '提示',
|
|
|
- content: '商户资料审核中,查看审核流程?',
|
|
|
- cancelText:'暂不查看',
|
|
|
- confirmColor:'#FF9447',
|
|
|
- confirmText:'查看',
|
|
|
- success: function (res) {
|
|
|
- if (res.confirm) {
|
|
|
+ title: '提示',
|
|
|
+ content: '商户资料审核中,查看审核流程?',
|
|
|
+ cancelText: '暂不查看',
|
|
|
+ confirmColor: '#FF9447',
|
|
|
+ confirmText: '查看',
|
|
|
+ success: function(res) {
|
|
|
+ if (res.confirm) {
|
|
|
_this.$jump('/pages/flow/flow')
|
|
|
- }
|
|
|
- }
|
|
|
+ }
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
/**
|
|
|
* 获取流程节点信息
|
|
|
@@ -427,8 +431,9 @@
|
|
|
left: 54%;
|
|
|
margin-left: 20rpx;
|
|
|
}
|
|
|
+
|
|
|
.cu-list.grid.no-border {
|
|
|
- padding: 10rpx;
|
|
|
+ padding: 10rpx;
|
|
|
}
|
|
|
|
|
|
.title {
|
|
|
@@ -503,7 +508,7 @@
|
|
|
color: #303030;
|
|
|
font-weight: 400;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
text:last-child {
|
|
|
margin-bottom: 10rpx;
|
|
|
font-size: 28rpx;
|