This commit is contained in:
ylj20011123 2025-06-27 15:54:07 +08:00
parent 64f57f2786
commit 8f55c2e695
75 changed files with 129 additions and 90 deletions

View File

@ -20,7 +20,7 @@
"type" : "uni-app:app-android" "type" : "uni-app:app-android"
}, },
{ {
"playground" : "standard", "playground" : "custom",
"type" : "uni-app:app-ios" "type" : "uni-app:app-ios"
} }
] ]

View File

@ -64,7 +64,7 @@
<span class="line"></span> <span class="line"></span>
<span class="address">{{ <span class="address">{{
item.SERVERPART_ADDRESS || "-" item.SERVERPART_ADDRESS || "-"
}}</span> }}</span>
</div> </div>
<scroll-view :scroll-x="true" class="typeList" <scroll-view :scroll-x="true" class="typeList"
v-if="item.ServerpartInfo.SERVERPART_TARGET"> v-if="item.ServerpartInfo.SERVERPART_TARGET">
@ -129,7 +129,7 @@
<uni-popup ref="popup" :show="isShow" :safe-area="false" :mask-click="false" :is-mask-click="false"> <uni-popup ref="popup" :show="isShow" :safe-area="false" :mask-click="false" :is-mask-click="false">
<view class="popupBigBox" @touchmove.stop.prevent> <view class="popupBigBox" @touchmove.stop.prevent>
<div class="popupDetailBox" :style="{ <div class="popupDetailBox" :style="{
height: comeForm === 'home' ? '80vh' : '95vh', height: comeForm === 'home' || pageType === 'mapList' ? '80vh' : '95vh'
}"> }">
<div class="popupTitle"> <div class="popupTitle">
<div class="closeIcon" @click="handleClosePopup"> <div class="closeIcon" @click="handleClosePopup">
@ -280,7 +280,7 @@
<span class="label">最大功率</span> <span class="label">最大功率</span>
<span class="value">{{ <span class="value">{{
item.Power ? item.Power + "kw" : "" item.Power ? item.Power + "kw" : ""
}}</span> }}</span>
</div> </div>
<div class="noticeList"> <div class="noticeList">

View File

@ -208,7 +208,7 @@ export default {
let vuexObj = {} let vuexObj = {}
if (vuex) { if (vuex) {
vuexObj = JSON.parse(vuex) vuexObj = JSON.parse(vuex)
console.log('vuexObjvuexObjvuexObj', vuexObj); console.log('vuexObjvuexObjvuexObj', JSON.parse(JSON.stringify(vuexObj)));
} }
const data = await _this.$api const data = await _this.$api
@ -217,11 +217,12 @@ export default {
// WechatUserId: _this.user.WechatUserId, // WechatUserId: _this.user.WechatUserId,
WechatUserId: vuexObj.user.WechatUserId, WechatUserId: vuexObj.user.WechatUserId,
}) })
// .then(function (data) { // .then(function (data) {
if (data.ResultCode === "100") { if (data.ResultCode === "100") {
let _data = data; let _data = data;
console.log("_data", _data);
_this.user.MEMBERSHIP_ID = _data.Data.MEMBERSHIP_ID || ""; _this.user.MEMBERSHIP_ID = _data.Data.MEMBERSHIP_ID || "";
_this.user.WechatUserId = _data.Data.WechatUserId || "";
_this.user.MEMBERSHIP_NAME = _data.Data.MEMBERSHIP_NAME || ""; _this.user.MEMBERSHIP_NAME = _data.Data.MEMBERSHIP_NAME || "";
_this.user.MEMBERSHIP_LEVEL_TEXT = _this.user.MEMBERSHIP_LEVEL_TEXT =
_data.Data.MEMBERSHIP_LEVEL_TEXT || ""; _data.Data.MEMBERSHIP_LEVEL_TEXT || "";
@ -252,7 +253,7 @@ export default {
_this.showAvatar = true _this.showAvatar = true
} else { } else {
// _this.setUser({}); // _this.setUser({});
_this.$store.commit("setUser", user); // _this.$store.commit("setUser", user);
} }
// }); // });
}, },

View File

@ -1150,6 +1150,7 @@ export default {
} else { } else {
let seatInfo = uni.getStorageSync("seatInfo"); let seatInfo = uni.getStorageSync("seatInfo");
console.log('11111', obj);
let req = { let req = {
start: { start: {
@ -1161,8 +1162,8 @@ export default {
}, },
end: { end: {
coordinate: { coordinate: {
latitude: obj.latitude, latitude: obj.SERVERPART_Y,
longitude: obj.longitude longitude: obj.SERVERPART_X
}, },
name: obj.SERVERPART_NAME, name: obj.SERVERPART_NAME,
}, },

View File

@ -857,6 +857,18 @@ export default {
} }
} else { } else {
//
let newShopList = JSON.parse(JSON.stringify(_this.shopOrder));
newShopList.forEach((item) => {
item.AVERAGE_PRICE = item.AVERAGE_PRICE.toString();
item.COMMODITY_CURRPRICE = item.COMMODITY_CURRPRICE.toString();
item.ORDER_AMOUNT = item.ORDER_AMOUNT.toString();
item.ORDER_COUNT = item.ORDER_COUNT.toString();
});
console.log('newShopListnewShopList', newShopList);
_this.$api _this.$api
.postCoop({ .postCoop({
action_type: "ScanOrder", action_type: "ScanOrder",
@ -872,7 +884,8 @@ export default {
reservationDate: _this.type === 2000 ? _this.radio : "", reservationDate: _this.type === 2000 ? _this.radio : "",
orderPersonTel: _this.phoneNumber ? _this.phoneNumber : "", orderPersonTel: _this.phoneNumber ? _this.phoneNumber : "",
couponCode: _this.couponAmount ? _this.couponPrice.CouponCode : "", couponCode: _this.couponAmount ? _this.couponPrice.CouponCode : "",
t_saleorderdetail: JSON.stringify(_this.shopOrder), // t_saleorderdetail: JSON.stringify(_this.shopOrder),
t_saleorderdetail: JSON.stringify(newShopList),
requestType: "application/x-www-form-urlencoded", requestType: "application/x-www-form-urlencoded",
}) })
.then((res) => { .then((res) => {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1119,8 +1119,8 @@ function populateParameters(result) {
var parameters = { var parameters = {
appId: "__UNI__F870657", appId: "__UNI__F870657",
appName: "驿佳", appName: "驿佳",
appVersion: "1.0.32", appVersion: "1.0.33",
appVersionCode: "1032", appVersionCode: "1033",
appLanguage: getAppLanguage(hostLanguage), appLanguage: getAppLanguage(hostLanguage),
uniCompileVersion: "4.45", uniCompileVersion: "4.45",
uniCompilerVersion: "4.45", uniCompilerVersion: "4.45",
@ -1220,8 +1220,8 @@ var getAppBaseInfo = {
result = sortObject(Object.assign(result, { result = sortObject(Object.assign(result, {
appId: "__UNI__F870657", appId: "__UNI__F870657",
appName: "驿佳", appName: "驿佳",
appVersion: "1.0.32", appVersion: "1.0.33",
appVersionCode: "1032", appVersionCode: "1033",
appLanguage: getAppLanguage(hostLanguage), appLanguage: getAppLanguage(hostLanguage),
hostVersion: version, hostVersion: version,
hostLanguage: hostLanguage, hostLanguage: hostLanguage,

View File

@ -1,4 +1,4 @@
{ {
"usingComponents": {}, "component": true,
"component": true "usingComponents": {}
} }

View File

@ -383,7 +383,7 @@ var _default = {
vuexObj = {}; vuexObj = {};
if (vuex) { if (vuex) {
vuexObj = JSON.parse(vuex); vuexObj = JSON.parse(vuex);
console.log('vuexObjvuexObjvuexObj', vuexObj); console.log('vuexObjvuexObjvuexObj', JSON.parse(JSON.stringify(vuexObj)));
} }
_context.next = 6; _context.next = 6;
return _this.$api.getCoop({ return _this.$api.getCoop({
@ -396,8 +396,8 @@ var _default = {
// .then(function (data) { // .then(function (data) {
if (data.ResultCode === "100") { if (data.ResultCode === "100") {
_data = data; _data = data;
console.log("_data", _data);
_this.user.MEMBERSHIP_ID = _data.Data.MEMBERSHIP_ID || ""; _this.user.MEMBERSHIP_ID = _data.Data.MEMBERSHIP_ID || "";
_this.user.WechatUserId = _data.Data.WechatUserId || "";
_this.user.MEMBERSHIP_NAME = _data.Data.MEMBERSHIP_NAME || ""; _this.user.MEMBERSHIP_NAME = _data.Data.MEMBERSHIP_NAME || "";
_this.user.MEMBERSHIP_LEVEL_TEXT = _data.Data.MEMBERSHIP_LEVEL_TEXT || ""; _this.user.MEMBERSHIP_LEVEL_TEXT = _data.Data.MEMBERSHIP_LEVEL_TEXT || "";
_this.user.COUPON_COUNT = _data.Data.COUPON_COUNT || ""; _this.user.COUPON_COUNT = _data.Data.COUPON_COUNT || "";
@ -425,7 +425,7 @@ var _default = {
_this.showAvatar = true; _this.showAvatar = true;
} else { } else {
// _this.setUser({}); // _this.setUser({});
_this.$store.commit("setUser", user); // _this.$store.commit("setUser", user);
} }
// }); // });
case 8: case 8:

View File

@ -873,6 +873,15 @@ var _default = {
// _this.orderInternal // _this.orderInternal
// eslint-disable-next-line no-constant-condition // eslint-disable-next-line no-constant-condition
if (false) {} else { if (false) {} else {
// 因为当有些商品整数 有些商品小数 接口那边会将小数点部分直接去掉 所以我们这边处理一下 把价钱字段转为字符串
var newShopList = JSON.parse(JSON.stringify(_this.shopOrder));
newShopList.forEach(function (item) {
item.AVERAGE_PRICE = item.AVERAGE_PRICE.toString();
item.COMMODITY_CURRPRICE = item.COMMODITY_CURRPRICE.toString();
item.ORDER_AMOUNT = item.ORDER_AMOUNT.toString();
item.ORDER_COUNT = item.ORDER_COUNT.toString();
});
console.log('newShopListnewShopList', newShopList);
_this.$api.postCoop({ _this.$api.postCoop({
action_type: "ScanOrder", action_type: "ScanOrder",
salebillType: 6000, salebillType: 6000,
@ -888,7 +897,8 @@ var _default = {
reservationDate: _this.type === 2000 ? _this.radio : "", reservationDate: _this.type === 2000 ? _this.radio : "",
orderPersonTel: _this.phoneNumber ? _this.phoneNumber : "", orderPersonTel: _this.phoneNumber ? _this.phoneNumber : "",
couponCode: _this.couponAmount ? _this.couponPrice.CouponCode : "", couponCode: _this.couponAmount ? _this.couponPrice.CouponCode : "",
t_saleorderdetail: JSON.stringify(_this.shopOrder), // t_saleorderdetail: JSON.stringify(_this.shopOrder),
t_saleorderdetail: JSON.stringify(newShopList),
requestType: "application/x-www-form-urlencoded" requestType: "application/x-www-form-urlencoded"
}).then(function (res) { }).then(function (res) {
console.log("res", res); console.log("res", res);

View File

@ -1,7 +1,8 @@
{ {
"description": "项目配置文件。", "description": "项目配置文件。",
"packOptions": { "packOptions": {
"ignore": [] "ignore": [],
"include": []
}, },
"setting": { "setting": {
"urlCheck": false, "urlCheck": false,
@ -9,10 +10,16 @@
"postcss": false, "postcss": false,
"minified": false, "minified": false,
"newFeature": true, "newFeature": true,
"bigPackageSizeSupport": true "bigPackageSizeSupport": true,
"ignoreUploadUnusedFiles": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
}
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "", "libVersion": "3.8.7",
"appid": "wx4c497eddcec4a0e7", "appid": "wx4c497eddcec4a0e7",
"projectname": "驿佳", "projectname": "驿佳",
"condition": { "condition": {
@ -32,5 +39,9 @@
"current": -1, "current": -1,
"list": [] "list": []
} }
},
"editorSetting": {
"tabIndent": "insertSpaces",
"tabSize": 2
} }
} }