Merge branch 'test' of https://e.coding.net/g-cphe0354/cashier_front/cashier_admin_app into test
This commit is contained in:
commit
ca919a04c3
|
|
@ -71,13 +71,13 @@
|
||||||
"amap" : {
|
"amap" : {
|
||||||
"__platform__" : [ "ios", "android" ],
|
"__platform__" : [ "ios", "android" ],
|
||||||
"appkey_ios" : "0b9be2631525ee5e218ac26d333f215c",
|
"appkey_ios" : "0b9be2631525ee5e218ac26d333f215c",
|
||||||
"appkey_android" : "39854b629c421d511a0697f2ae3b18f6"
|
"appkey_android" : "9d1e62050f8558a082f7aa3ad5bb3c68"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"maps" : {
|
"maps" : {
|
||||||
"amap" : {
|
"amap" : {
|
||||||
"appkey_ios" : "0b9be2631525ee5e218ac26d333f215c",
|
"appkey_ios" : "0b9be2631525ee5e218ac26d333f215c",
|
||||||
"appkey_android" : "39854b629c421d511a0697f2ae3b18f6"
|
"appkey_android" : "9d1e62050f8558a082f7aa3ad5bb3c68"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ad" : {},
|
"ad" : {},
|
||||||
|
|
@ -223,6 +223,15 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"sdkConfigs" : {
|
||||||
|
"maps" : {
|
||||||
|
"amap" : {
|
||||||
|
"key" : "6033c97e67bf2e9ceac306e1a3fa35f8",
|
||||||
|
"securityJsCode" : "0547b69252ef0ed14e11f5c4ac152f07",
|
||||||
|
"serviceHost" : ""
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mp-alipay" : {
|
"mp-alipay" : {
|
||||||
|
|
|
||||||
|
|
@ -28,10 +28,10 @@
|
||||||
<view class="label">门店详细地址</view>
|
<view class="label">门店详细地址</view>
|
||||||
<view class="right"><view>{{ vdata.shopInfo.address }}</view><up-icon name="arrow-right" color="#999999" size="15"></up-icon></view>
|
<view class="right"><view>{{ vdata.shopInfo.address }}</view><up-icon name="arrow-right" color="#999999" size="15"></up-icon></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="page-cell">
|
<!-- <view class="page-cell">
|
||||||
<view class="label">堂食功能</view>
|
<view class="label">堂食功能</view>
|
||||||
<view class="right"><up-switch v-model="vdata.dineIn" size="20" activeColor="#0FC161" @change="switchChange('eatModel')"></up-switch></view>
|
<view class="right"><up-switch v-model="vdata.dineIn" size="20" activeColor="#0FC161" @change="switchChange('eatModel')"></up-switch></view>
|
||||||
</view>
|
</view> -->
|
||||||
<view class="page-cell">
|
<view class="page-cell">
|
||||||
<view class="label">允许打包</view>
|
<view class="label">允许打包</view>
|
||||||
<view class="right"><up-switch v-model="vdata.takeout" size="20"activeColor="#0FC161" @change="switchChange('eatModel')"></up-switch></view>
|
<view class="right"><up-switch v-model="vdata.takeout" size="20"activeColor="#0FC161" @change="switchChange('eatModel')"></up-switch></view>
|
||||||
|
|
@ -122,7 +122,10 @@ import { forIn } from 'lodash';
|
||||||
const uploadImg = ref()
|
const uploadImg = ref()
|
||||||
const phone = ref(null)
|
const phone = ref(null)
|
||||||
const vdata = reactive({
|
const vdata = reactive({
|
||||||
shopInfo: {},
|
shopInfo: {
|
||||||
|
status: 2,
|
||||||
|
isUseVip: 0,
|
||||||
|
},
|
||||||
extendList: [],
|
extendList: [],
|
||||||
registerTypeList: [
|
registerTypeList: [
|
||||||
{name: "先付费", value: "munchies"},
|
{name: "先付费", value: "munchies"},
|
||||||
|
|
@ -142,6 +145,7 @@ const vdata = reactive({
|
||||||
})
|
})
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
shopExtend();
|
shopExtend();
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
onShow(() => {
|
onShow(() => {
|
||||||
|
|
@ -304,11 +308,10 @@ let switchChange = ( type ) => {
|
||||||
id : vdata.shopInfo.id,
|
id : vdata.shopInfo.id,
|
||||||
}
|
}
|
||||||
switch ( type ){
|
switch ( type ){
|
||||||
case "isUseVip":
|
case "address":
|
||||||
params.lng = vdata.shopInfo.lng;
|
params.lng = vdata.shopInfo.lng;
|
||||||
params.lat = vdata.shopInfo.lat;
|
params.lat = vdata.shopInfo.lat;
|
||||||
params.address = vdata.shopInfo.address;
|
params.address = vdata.shopInfo.address;
|
||||||
params.isUseVip = vdata.shopInfo.isUseVip;
|
|
||||||
break;
|
break;
|
||||||
case "status":
|
case "status":
|
||||||
params.status = vdata.shopInfo.status;
|
params.status = vdata.shopInfo.status;
|
||||||
|
|
@ -341,15 +344,26 @@ let switchChange = ( type ) => {
|
||||||
*/
|
*/
|
||||||
let showMap = () => {
|
let showMap = () => {
|
||||||
// 本地 测试选择
|
// 本地 测试选择
|
||||||
// return test();
|
// 打开地图
|
||||||
// 打开地图 && 获取省市县
|
|
||||||
uni.chooseLocation().then((res) => {
|
uni.chooseLocation({
|
||||||
console.log(res);
|
// type: 'wgs84',
|
||||||
vdata.shopInfo.lng = res.longitude.toFixed(6); // IOS 小程序中: 经纬度12位。
|
success: function (res) {
|
||||||
vdata.shopInfo.lat = res.latitude.toFixed(6);
|
|
||||||
vdata.shopInfo.address = res.name;
|
vdata.shopInfo.lng = res.longitude.toFixed(6); // IOS 小程序中: 经纬度12位。
|
||||||
switchChange('address')
|
vdata.shopInfo.lat = res.latitude.toFixed(6);
|
||||||
});
|
vdata.shopInfo.address = res.name;
|
||||||
|
switchChange('address')
|
||||||
|
},
|
||||||
|
fail: function(err) {
|
||||||
|
uni.showToast({
|
||||||
|
title:err,
|
||||||
|
icon:'error'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -372,6 +386,8 @@ let showMap = () => {
|
||||||
color: #333333;
|
color: #333333;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
flex-shrink: 0;
|
||||||
|
margin-right: 20rpx;
|
||||||
.tableFee {
|
.tableFee {
|
||||||
width: 186rpx;
|
width: 186rpx;
|
||||||
height: 54rpx;
|
height: 54rpx;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue