|
@@ -164,6 +164,12 @@
|
|
|
</view>
|
|
</view>
|
|
|
<myPay ref="myPay" :selectBlPay="userInfo.balance *1 >= price *1" :balance="userInfo.balance" :totalAmount="price" :storeId="store.storeId"
|
|
<myPay ref="myPay" :selectBlPay="userInfo.balance *1 >= price *1" :balance="userInfo.balance" :totalAmount="price" :storeId="store.storeId"
|
|
|
:orderNo="subOrderNo" @payResult="payResult" @improperClose="improperClose"></myPay>
|
|
:orderNo="subOrderNo" @payResult="payResult" @improperClose="improperClose"></myPay>
|
|
|
|
|
+
|
|
|
|
|
+ <uni-popup ref="reservationQueuePopup">
|
|
|
|
|
+ <uni-popup-dialog :type="msgType" cancelText="不在提示" confirmText="已知晓" title="提示" :content="configContent" @confirm="dialogConfirm"
|
|
|
|
|
+ @close="dialogClose"></uni-popup-dialog>
|
|
|
|
|
+ </uni-popup>
|
|
|
|
|
+
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -175,6 +181,8 @@
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ msgType:null,
|
|
|
|
|
+ configContent:'',
|
|
|
timeoutId:null,
|
|
timeoutId:null,
|
|
|
templateId:[],
|
|
templateId:[],
|
|
|
//服务对象列表
|
|
//服务对象列表
|
|
@@ -245,6 +253,13 @@
|
|
|
},1000*60*5)
|
|
},1000*60*5)
|
|
|
},
|
|
},
|
|
|
onShow() {
|
|
onShow() {
|
|
|
|
|
+
|
|
|
|
|
+ //获取弹窗设置
|
|
|
|
|
+ let reservationQueueContent = uni.getStorageSync('reservation_queue_content');
|
|
|
|
|
+ if (!reservationQueueContent){
|
|
|
|
|
+ this.getConfigKey('reservation_queue_content')
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
this.userInfo = uni.getStorageSync('userInfo')
|
|
this.userInfo = uni.getStorageSync('userInfo')
|
|
|
// 查询门店信息
|
|
// 查询门店信息
|
|
|
const data = uni.getStorageSync('storeInfo');
|
|
const data = uni.getStorageSync('storeInfo');
|
|
@@ -266,6 +281,29 @@
|
|
|
clearTimeout(this.timeoutId);
|
|
clearTimeout(this.timeoutId);
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ dialogConfirm(){
|
|
|
|
|
+ this.configContent = '';
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ dialogClose(){
|
|
|
|
|
+ uni.setStorageSync('reservation_queue_content',true);
|
|
|
|
|
+ this.configContent = '';
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ getConfigKey(key){
|
|
|
|
|
+
|
|
|
|
|
+ this.$api.getConfigKey({key:key}).then(res=>{
|
|
|
|
|
+ console.log('获取到的配置信息',res.data.msg)
|
|
|
|
|
+ if (res.data.msg){
|
|
|
|
|
+ //打开弹窗
|
|
|
|
|
+ this.configContent = res.data.msg
|
|
|
|
|
+ this.$refs.reservationQueuePopup.open()
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
// 获取门店列表数据
|
|
// 获取门店列表数据
|
|
|
getStoreListData(data) {
|
|
getStoreListData(data) {
|
|
|
let that = this;
|
|
let that = this;
|