shish 4 ani în urmă
părinte
comite
ecfb1e223b

+ 4 - 4
ghs/vue.config.js

@@ -3,7 +3,7 @@ const path = require('path');
 const isProduction = process.env.NODE_ENV === 'production';
 
 //http和https切换请修改这里,修改后需要重新运行npm run serve shish 2021.4.12
-const proxyTarget = 'https://api.shop.wixhb.com';
+const proxyTarget = 'http://api.shop.hzghd.com';
 
 function resolve(dir) {
 	return path.join(__dirname, dir);
@@ -14,11 +14,11 @@ function resolve(dir) {
  * **/
 let hostUrl = ``;
 if(process.env.NODE_ENV == 'development'){
-	hostUrl = `https://img.wixhb.com/`;
+	hostUrl = `http://img.hzghd.com/`;
 }else if(process.env.NODE_ENV == 'local'){
-	hostUrl = `https://img.wixhb.com/`;
+	hostUrl = `http://img.hzghd.com/`;
 }else{
-	hostUrl = `https://img.wixhb.com/`;
+	hostUrl = `https://img.hzghd.com/`;
 }
 
 const cdn = {

+ 30 - 19
ghsApp/src/admin/billing/affirm.vue

@@ -40,10 +40,9 @@
         </view>
         <view class="module-com input-line-wrap">
 					<view class="" v-if="isBilling">
-          <tui-list-cell class="line-cell" :hover="false" :arrow="true" @click="selectCustom">
+          <tui-list-cell class="line-cell" :hover="false" :arrow="false" @click="selectCustom">
             <view class="tui-title">客户</view>
-            <view class="tui-input" v-if="form.customId" >{{ form.customName }}</view>
-            <view class="tui-placeholder" style="width: 100%" v-else >请选择客户</view>
+            <view class="tui-input">{{ form.customName }}</view>
           </tui-list-cell>
 
           <tui-list-cell class="line-cell" :hover="false" :arrow="false">
@@ -59,7 +58,7 @@
 
           <tui-list-cell class="line-cell" :hover="false" :arrow="false" v-show="form.sendType == 1" >
             <view class="tui-title">运费</view>
-            <input @blur="sendCostBlur" type="number" placeholder="请填写,留空免运费" @input="countAllPrices" v-model="form.sendCost" placeholder-class="tui-placeholder"/>
+            <input @blur="sendCostBlur" type="number" placeholder="请填写,留空免运费" @input="calcPrice" v-model="form.sendCost" placeholder-class="tui-placeholder"/>
           </tui-list-cell>
 
           <tui-list-cell class="line-cell" :arrow="true" v-if="form.debt == 0">
@@ -83,18 +82,18 @@
             <text style="color: #3385FF" v-else >{{ allPrice.toFixed(2) }}</text>
           </tui-list-cell>
 
+          <tui-list-cell class="line-cell" :hover="false" :arrow="false" v-if="customInfo.discount && customInfo.discount < 1" >
+            <view class="tui-title">优惠</view>
+            <text style="color: red">-{{discountAmount}}<text style="margin-left:18rpx;">({{customInfo.discount*100}}折)</text></text>
+          </tui-list-cell>
+
           <tui-list-cell class="line-cell" :hover="false" :arrow="false" >
             <view class="tui-title">
               <text>
                 <text v-if="form.debt == 1">应收金额</text><text v-else>已收金额</text>
               </text>  
             </view>
-            <input style="border: 1px solid #eee;color: #3385FF;width: calc(100%);height:70rpx;" type="digit" @focus="modifyPrice=''" v-model="modifyPrice" placeholder-class="tui-placeholder"/>
-          </tui-list-cell>
-
-          <tui-list-cell class="line-cell" :hover="false" :arrow="false" >
-            <view class="tui-title">优惠</view>
-            <text style="color: #3385FF">{{	(allPrice.toFixed(2) - modifyPrice + Number(this.form.sendCost)).toFixed(2) }}</text>
+            <text style="color: #3385FF">{{modifyPrice}}</text>
           </tui-list-cell>
 
           <tui-list-cell class="line-cell" :hover="false" :arrow="false">
@@ -112,7 +111,7 @@
           <text>{{form.debt == 1 ? "欠款" : "已收款"}}</text>
         </text>
         <text class="price-title" v-else>金额</text>
-        <text class="price-number">¥<text class="large" v-if="isBilling">{{ modifyPrice }}</text><text class="large" v-else>{{ allPrice.toFixed(2) }}</text></text>
+        <text class="price-number">¥<text class="large">{{ modifyPrice }}</text></text>
       </view>
       <button class="admin-button-com blue middle" @click="affirmFormSubmit">开单</button>
     </view>
@@ -133,6 +132,7 @@ import appFormSend from "@/components/app-form-send";
 const formUtil = require("@/utils/formValidation.js");
 import { createOrder, freight,wastage,updateOrder } from "@/api/order/index";
 import { mapActions, mapGetters } from "vuex";
+import { getUserDet} from "@/api/member";
 export default {
   name: "BillingAffirm", // 开单确认
   components: {
@@ -175,7 +175,9 @@ export default {
       },
       money: "",
       modifyPrice: 0,
-      showCustomer: false
+      showCustomer: false,
+      customInfo:{discount:1},
+      discountAmount:0
     };
   },
   onLoad (option) {
@@ -195,9 +197,14 @@ export default {
     this.courier(2);
     if(option.customId){
       this.form.customId = option.customId
-    }
-    if(option.customName){
-      this.form.customName = option.customName
+      let that = this
+      getUserDet({ id: option.customId }).then(res => {
+        that.form.customName = res.data.name
+        that.customInfo = res.data
+        if(res.data.discount && res.data.discount < 1){
+          that.calcPrice()
+        }
+      })
     }
   },
 	onShow(){
@@ -223,10 +230,14 @@ export default {
 			this.payWayindex = index
       this.form.payWay = this.payWayList[index].id
 		},
-    countAllPrices (e) {
-      this.allPrices = this.allPrices + Number(this.form.sendCost);
-      let allPrices = this.allPrice.toFixed(2)
-      this.modifyPrice = (Number(allPrices) + Number(this.form.sendCost)).toFixed(2);
+    calcPrice () {
+      let totalPrice = this.allPrice.toFixed(2)
+      if(this.customInfo.discount && this.customInfo.discount <1){
+        this.discountAmount = ((1-Number(this.customInfo.discount))*totalPrice).toFixed(2)
+        this.discountAmount = parseFloat(this.discountAmount)
+      }
+      this.modifyPrice = (Number(totalPrice) + Number(this.form.sendCost) - Number(this.discountAmount)).toFixed(2)
+      this.modifyPrice = parseFloat(this.modifyPrice)
     },
     setPayWay(payWay){
       this.form.payWay = payWay

+ 4 - 0
ghsApp/src/api/custom/index.js

@@ -10,3 +10,7 @@ export const updateDebtLimit = data => {
 export const updateCustomBlack = data => {
 	return https.get('/custom/set-black', data)
 }
+
+export const changeDiscount = data => {
+	return https.get('/custom/change-discount', data)
+}

+ 6 - 6
ghsApp/src/ext.json

@@ -1,12 +1,12 @@
 {
   "extEnable": true,
-  "extAppid": "wxcf32b3f0684c2433",
+  "extAppid": "wx21b7c3ef12082099",
   "directCommit": false,
   "ext": {
-    "account": 12358,
-    "apiHost": "https://api.shop.wixhb.com",
-    "socketApiHost": "api.shop.wixhb.com",
-    "imgHost": "https://img.wixhb.com",
-    "name":"销花宝"
+    "account": 12362,
+    "apiHost": "https://api.shop.hzghd.com",
+    "socketApiHost": "api.shop.hzghd.com",
+    "imgHost": "https://img.hzghd.com",
+    "name":"花掌柜"
   }
 }

+ 1 - 7
ghsApp/src/manifest.json

@@ -83,21 +83,15 @@
     "quickapp" : {},
     /* 小程序特有相关 线上(销花宝) wxcf32b3f0684c2433 开发(花掌柜) wx21b7c3ef12082099 */
     "mp-weixin" : {
-        "appid" : "wxcf32b3f0684c2433",
+        "appid" : "wx21b7c3ef12082099",
         "setting" : {
             "urlCheck" : false
         },
-		"optimization" : {
-			"subPackages" : true
-		},
         "usingComponents" : true,
         "permission" : {
             "scope.userLocation" : {
                 "desc" : "请点击确定"
             }
-        },
-        "optimization": {  
-            "subPackages": true  
         }
     },
     "mp-alipay" : {

+ 20 - 2
ghsApp/src/pagesClient/member/detail.vue

@@ -71,6 +71,7 @@
                 <switch :checked="form.debt == 0 ? false : true" @change="remindChangeFn" style="transform: scale(0.8,0.8)" />
               </div>
             </tui-list-cell>
+
 						<tui-list-cell class="line-cell" :hover="false" v-if="form.debt == 1">
               <div class="tui-title">欠款额度</div>
               <input v-model="debtLimit" @click="debtLimit=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="请填写" type="digit" style="width:48%;border:1px solid #ddd;margin-right:15rpx;height:52rpx;" />
@@ -85,6 +86,12 @@
               </div>
             </tui-list-cell>
 
+						<tui-list-cell class="line-cell" :hover="false" v-if="form.debt == 1">
+              <div class="tui-title">折扣</div>
+              <input v-model="discount" @click="discount=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="95折填0.95,无折扣填1" type="digit" style="width:48%;border:1px solid #ddd;margin-right:15rpx;height:52rpx;" />
+              <button class="admin-button-com blue mini-btn" @tap="changeDiscount">确定</button>
+						</tui-list-cell>
+
         </view>
       </view>
     </templete>
@@ -97,7 +104,7 @@ import AppAvatarModule from "@/components/module/app-avatar";
 import TuiListCell from '@/components/plugin/list-cell'
 import { share } from "@/mixins";
 import { getUserDet,debt} from "@/api/member";
-import { updateDebtLimit,updateCustomBlack} from "@/api/custom";
+import { updateDebtLimit,updateCustomBlack,changeDiscount} from "@/api/custom";
 export default {
   name: "member-detail",
   components: {
@@ -114,7 +121,8 @@ export default {
         name:'',
         debt: 0,
         black: 1,
-      }
+      },
+      discount:null
     };
   },
   computed: {},
@@ -139,6 +147,15 @@ export default {
         uni.showToast({title:'修改成功',icon: "none"});
       });
     },
+    changeDiscount(){
+      if(this.discount > 1){
+        uni.showToast({title:'不能大于1',icon: "none"})
+        return false
+      }
+      changeDiscount({ id: this.option.id,discount:this.discount }).then(res => {
+        uni.showToast({title:'修改成功',icon: "none"});
+      });
+    },
     async remindChangeFn(e){
       this.form.debt = e.detail.value ? 1 : 0;
       try {
@@ -181,6 +198,7 @@ export default {
         this.userInfo = res.data;
         this.form.debt = this.userInfo.debt
         this.form.black = this.userInfo.black
+        this.discount = parseFloat(res.data.discount)
       });
     },
     orderMoreFn() {

+ 2 - 2
ghsApp/src/pagesOrder/detail.vue

@@ -164,7 +164,7 @@
 						<div class="detail-price_box" style="font-size: 28rpx;">¥{{ detailInfo.prePrice}}</div>
 					</tui-list-cell>
 					<tui-list-cell v-if="detailInfo.discountAmount > 0" class="line-cell" :hover="false">
-						<div class="tui-title">优惠减免</div>
+						<div class="tui-title">优惠</div>
 						<div class="detail-price_box" style="font-size: 28rpx">-¥{{ detailInfo.discountAmount }}</div>
 					</tui-list-cell>
 					<tui-list-cell v-if="detailInfo.refundPrice > 0" class="line-cell" :hover="false">
@@ -174,7 +174,7 @@
 					<tui-list-cell class="line-cell" :hover="false">
 
 						<div v-if="detailInfo.status == 1 || detailInfo.status==5" class="tui-title">应收金额</div>
-						<div v-else class="tui-title">实金额</div>
+						<div v-else class="tui-title">实金额</div>
 						<div class="detail-price_box red" style="font-size: 32rpx;font-weight:bold;">¥{{ detailInfo.realPrice}}</div>
 					</tui-list-cell>
 				</div>

+ 6 - 6
ghsApp/src/static/iconfont/iconfont.css

@@ -1,11 +1,11 @@
 @font-face {
   font-family: 'iconfont';  /* project id 1525256 */
-  src: url('https://img.wixhb.com/iconfont/font_1525256_6bxwphhntqh.eot');
-  src: url('https://img.wixhb.com/iconfont/font_1525256_6bxwphhntqh.eot?#iefix') format('embedded-opentype'),
-  url('https://img.wixhb.com/iconfont/font_1525256_6bxwphhntqh.woff2') format('woff2'),
-  url('https://img.wixhb.com/iconfont/font_1525256_6bxwphhntqh.woff') format('woff'),
-  url('https://img.wixhb.com/iconfont/font_1525256_6bxwphhntqh.ttf') format('truetype'),
-  url('https://img.wixhb.com/iconfont/font_1525256_6bxwphhntqh.svg#iconfont') format('svg');
+  src: url('https://img.hzghd.com/iconfont/font_1525256_6bxwphhntqh.eot');
+  src: url('https://img.hzghd.com/iconfont/font_1525256_6bxwphhntqh.eot?#iefix') format('embedded-opentype'),
+  url('https://img.hzghd.com/iconfont/font_1525256_6bxwphhntqh.woff2') format('woff2'),
+  url('https://img.hzghd.com/iconfont/font_1525256_6bxwphhntqh.woff') format('woff'),
+  url('https://img.hzghd.com/iconfont/font_1525256_6bxwphhntqh.ttf') format('truetype'),
+  url('https://img.hzghd.com/iconfont/font_1525256_6bxwphhntqh.svg#iconfont') format('svg');
 }
 
 .iconfont {

+ 4 - 4
hd/vue.config.js

@@ -3,7 +3,7 @@ const path = require('path');
 const isProduction = process.env.NODE_ENV === 'production';
 
 //http和https切换请修改这里,修改后需要重新运行npm run serve shish 2021.4.12
-const proxyTarget = 'https://api.shop.huahb.cn';
+const proxyTarget = 'http://api.shop.huaml.com';
 
 function resolve(dir) {
 	return path.join(__dirname, dir);
@@ -11,11 +11,11 @@ function resolve(dir) {
 
 let hostUrl = ``;
 if(process.env.NODE_ENV == 'development'){
-	hostUrl = `https://img.huahb.cn/`;
+	hostUrl = `http://img.huaml.com/`;
 }else if(process.env.NODE_ENV == 'local'){
-	hostUrl = `https://img.huahb.cn/`;
+	hostUrl = `http://img.huaml.com/`;
 }else{
-	hostUrl = `https://img.huahb.cn/`;
+	hostUrl = `https://img.huaml.com/`;
 }
 const cdn = {
 	dev: {

+ 49 - 37
hdApp/src/admin/billing/affirmGhs.vue

@@ -167,18 +167,18 @@
 			<form>
 				<view class="module-com">
 					<view class="flex-space ghs-msg">
-						{{ghsMsg.name}} {{ ghsMsg.mobile }}
-						<i class="iconfont icondianhua1" @tap="toPhone(ghsMsg.mobile)"></i>
+						{{ghsInfo.name}} {{ ghsInfo.mobile }}
+						<i class="iconfont icondianhua1" @tap="toPhone(ghsInfo.mobile)"></i>
 					</view>
 					<view class="flex ghs-msg active">
-						{{ ghsMsg.fullAddress }}
+						{{ ghsInfo.fullAddress }}
 					</view>
 				</view>
 				<view class="module-com">
 					<view class="commodity-view">
 						<view class="commodity-list">
 							<view class="commodity-item" v-for="(item, index) in list" :key="index">
-								<image class="item-icon" :src="item.cover" alt="商品图" />
+								<image class="item-icon" :src="item.cover" alt="" />
 								<view class="item-info">
 									<view class="info-line">
 										<text class="item-name">{{ item.itemName }}</text>
@@ -203,11 +203,7 @@
 								<text class="iconfont icongouwuche"></text>
 								重选花材
 							</view>
-							<view class="describe-view">
-								共{{ allCountFun.bigLength }}/{{ allCountFun.smallLength }}种,
-								<!-- 共16扎9支, -->
-								合计 ¥<text class="price">{{ allPriceFun }}</text>
-							</view>
+							<view class="describe-view">共{{ allCountFun.bigLength }}/{{ allCountFun.smallLength }}种,合计 ¥<text class="price">{{ allPriceFun }}</text></view>
 						</view>
 					</view>
 				</view>
@@ -243,6 +239,21 @@
 					</tui-list-cell>
 					-->
 
+					<tui-list-cell class="line-cell" :hover="false" :arrow="false" >
+						<view class="tui-title">总金额</view>
+						<text style="color: #3385FF">{{ parseFloat(allPrice.toFixed(2)) }}</text>
+					</tui-list-cell>
+
+					<tui-list-cell class="line-cell" :hover="false" :arrow="false" v-if="ghsInfo.giveDiscount && ghsInfo.giveDiscount < 1" >
+						<view class="tui-title">优惠</view>
+						<text style="color: red">-{{discountAmount}}<text style="margin-left:18rpx;">({{ghsInfo.giveDiscount*100}}折)</text></text>
+					</tui-list-cell>
+
+					<tui-list-cell class="line-cell" :hover="false" :arrow="false" >
+						<view class="tui-title">实际金额</view>
+						<text style="color: #3385FF">{{modifyPrice}}</text>
+					</tui-list-cell>
+
 					<tui-list-cell class="line-cell" :hover="false" :arrow="false">
 						<textarea style="height: 100rpx" v-model="remark" placeholder="这里写备注"/>
 					</tui-list-cell>
@@ -252,18 +263,11 @@
 		</view>
 		<view class="under-bar">
 			<view class="price-view">
-				<text class="price-title">总金额</text>
-				<text class="price-number">
-					¥
-					<text class="large" v-if="form.sendType==1 && !couponSumText">{{ numberAdd(allPrice, Number(form.sendCost))  }}</text>
-					<text class="large" v-else-if="form.sendType==1 && couponSumText">{{	(allPrice + Number(form.sendCost) - Number(couponSumText)).toFixed(2)  }}</text>
-					<text class="large" v-else-if="form.sendType==2 && !couponSumText">{{ allPrice}}</text>
-					<text class="large" v-else-if="form.sendType==2 && couponSumText">{{ NumberSub(allPrice, Number(couponSumText))}}</text>
-				</text>
+				<text class="price-title">金额</text>
+				<text class="price-number">¥<text class="large">{{ modifyPrice}}</text></text>
 			</view>
 			<button class="admin-button-com blue middle" @click="affirmFormSubmit">提交</button>
 		</view>
-
 	</view>
 </template>
 
@@ -306,7 +310,7 @@ export default {
 		return {
 			list:[],
 			autoLoad: false,
-			ghsMsg:'',
+			ghsInfo:'',
 			sendTimeWant:'',
 			remark:'',
 			form: {
@@ -332,7 +336,9 @@ export default {
       		couponSumText: '',
       		couponText: '',
 			today:'',
-			monthLater:''
+			monthLater:'',
+			modifyPrice:0,
+			discountAmount:0
 		};
 	},
 	onLoad(e) {
@@ -348,10 +354,8 @@ export default {
 			});
 		}
 		this.getGhsData(e.id);
-
 	},
 	onShow() {
-		console.log(this.selectList,'selectList')
 		let selectList = this.$util.copyObject(this.selectList);
 		let list = [];
 		for (let i=0;i<selectList.length;i++){
@@ -372,7 +376,6 @@ export default {
 			}
 		}
 		this.list = list;
-		console.log(list,'list')
 		if(uni.getStorageSync('selectCouponInfo').couponSum) {
 			this.couponSumText = uni.getStorageSync('selectCouponInfo').couponSum
 			this.couponText = '-¥' + this.couponSumText
@@ -388,8 +391,17 @@ export default {
 	},
 	methods: {
 		...mapActions(["initMerchantInfo"]),
+		calcPrice(){
+			let allPrice = this.allPrice.toFixed(2)
+			if(this.ghsInfo.giveDiscount && this.ghsInfo.giveDiscount < 1){
+				this.discountAmount = ((1-Number(this.ghsInfo.giveDiscount))*allPrice).toFixed(2)
+				this.discountAmount = parseFloat(this.discountAmount)
+			}
+			this.modifyPrice = (Number(allPrice) - Number(this.discountAmount)).toFixed(2)
+			this.modifyPrice = parseFloat(this.modifyPrice)
+		},
 		init() {
-			this._getDet();
+			this._getDet()
 		},
 		bindDateChange(e){
 			let date = e.detail.value;
@@ -402,23 +414,23 @@ export default {
 			});
 		},
 		toCoupon() {
-		let amount = this.form.sendType == 1 ? this.numberAdd(this.allPrice, Number(this.form.sendCost)) : this.allPrice
-		console.log(amount)
-		this.pageTo({url: '/admin/coupon/selectCouponList?price=' + amount})
+			let amount = this.form.sendType == 1 ? this.numberAdd(this.allPrice, Number(this.form.sendCost)) : this.allPrice
+			console.log(amount)
+			this.pageTo({url: '/admin/coupon/selectCouponList?price=' + amount})
 		},
 		// 是否有可用优惠券、红包
 		hasCoupon() {
-		let amount = this.form.sendType == 1 ? this.numberAdd(this.allPrice, Number(this.form.sendCost)) : this.allPrice
-		shopHouponHas({amount}).then(res => {
-			this.couponText = res.data.has ? '有红包可用' : ''
-			console.log(this.couponText)
-		}).catch(err => {})
+			let amount = this.form.sendType == 1 ? this.numberAdd(this.allPrice, Number(this.form.sendCost)) : this.allPrice
+			shopHouponHas({amount}).then(res => {
+				this.couponText = res.data.has ? '有红包可用' : ''
+				console.log(this.couponText)
+			}).catch(err => {})
 		},
 		getGhsData(id) {
 			getGhsDataApi({id:id}).then(res => {
-				this.ghsMsg = res.data;
-				console.log('res.data',this.ghsMsg)
-				this.purchaseFreight(this.ghsMsg);
+				this.ghsInfo = res.data;
+				this.purchaseFreight(this.ghsInfo);
+				this.calcPrice()
 			});
 		},
 		countAllPrices(e){
@@ -469,14 +481,14 @@ export default {
 			const product = this.list.map(ele => {
 				return { productId: ele.id, bigNum: ele.bigCount, smallNum: ele.smallCount,classId:ele.classId,itemId:ele.itemId };
 			});
-			let xj = uni.getStorageSync("ghsXj"+this.ghsMsg.id)
+			let xj = uni.getStorageSync("ghsXj"+this.ghsInfo.id)
 			let params = {
 				getType:this.form.sendType,
 				sendTimeWant:this.sendTimeWant,
 				sendCost:this.form.sendType==2?'':this.form.sendCost,
 				remark:this.remark,
 				product:JSON.stringify(product),
-				ghsId:this.ghsMsg.id,
+				ghsId:this.ghsInfo.id,
 				couponId: this.form.couponId,
 				xj:JSON.stringify(xj)
 			}

+ 6 - 6
hdApp/src/ext.json

@@ -1,12 +1,12 @@
 {
   "extEnable": true,
-  "extAppid": "wx0d42f5f1dcb3a370",
+  "extAppid": "wxe4675bab299a52f7",
   "directCommit": false,
   "ext": {
-    "account": 12358,
-    "apiHost": "https://api.shop.huahb.cn",
-    "socketApiHost": "api.shop.huahb.cn",
-    "imgHost": "https://img.huahb.cn",
-    "name":"花惠宝"
+    "account": 12362,
+    "apiHost": "https://api.shop.huaml.com",
+    "socketApiHost": "api.shop.huaml.com",
+    "imgHost": "https://img.huaml.com",
+    "name":"花美玲"
   }
 }

+ 1 - 1
hdApp/src/manifest.json

@@ -84,7 +84,7 @@
     "quickapp" : {},
     /* 小程序特有相关 线上(花惠宝) wx0d42f5f1dcb3a370 开发(花美玲) wxe4675bab299a52f7 */
     "mp-weixin" : {
-        "appid" : "wx0d42f5f1dcb3a370",
+        "appid" : "wxe4675bab299a52f7",
         "setting" : {
             "urlCheck" : false
         },

+ 4 - 1
hdApp/src/pagesPurchase/ghsProduct.vue

@@ -6,7 +6,10 @@
         <image :src="pageInfo.avatar"></image>
         <view class="shop_info">
           <view class="shop_title">{{pageInfo.name}}</view>
-          <view class="shop_intro"><text style="margin-right: 20upx;">已采购:{{pageInfo.expendAmount || '0.00'}}</text> <text>欠款:{{pageInfo.debtAmount || '0.00'}}</text></view>
+          <view class="shop_intro">
+			  <text v-if="pageInfo.giveDiscount >= 1" style="margin-right: 20upx;">已采购:{{pageInfo.expendAmount || '0.00'}}</text>
+			  <text v-else style="margin-right: 20upx;color:red;font-weight:700">下单享{{pageInfo.giveDiscount*100}}折</text>
+			  <text>欠款:{{pageInfo.debtAmount || '0.00'}}</text></view>
         </view>
         <i class="iconfont icondianhua1" v-if="pageInfo.mobile !=''" @tap="toPhone(pageInfo.mobile)"></i>
       </view>

+ 6 - 6
hdApp/src/static/iconfont/iconfont.css

@@ -1,11 +1,11 @@
 @font-face {
   font-family: 'iconfont';  /* project id 1525256 */
-  src: url('https://img.huahb.cn/iconfont/font_1525256_6bxwphhntqh.eot');
-  src: url('https://img.huahb.cn/iconfont/font_1525256_6bxwphhntqh.eot?#iefix') format('embedded-opentype'),
-  url('https://img.huahb.cn/iconfont/font_1525256_6bxwphhntqh.woff2') format('woff2'),
-  url('https://img.huahb.cn/iconfont/font_1525256_6bxwphhntqh.woff') format('woff'),
-  url('https://img.huahb.cn/iconfont/font_1525256_6bxwphhntqh.ttf') format('truetype'),
-  url('https://img.huahb.cn/iconfont/font_1525256_6bxwphhntqh.svg#iconfont') format('svg');
+  src: url('https://img.huaml.com/iconfont/font_1525256_6bxwphhntqh.eot');
+  src: url('https://img.huaml.com/iconfont/font_1525256_6bxwphhntqh.eot?#iefix') format('embedded-opentype'),
+  url('https://img.huaml.com/iconfont/font_1525256_6bxwphhntqh.woff2') format('woff2'),
+  url('https://img.huaml.com/iconfont/font_1525256_6bxwphhntqh.woff') format('woff'),
+  url('https://img.huaml.com/iconfont/font_1525256_6bxwphhntqh.ttf') format('truetype'),
+  url('https://img.huaml.com/iconfont/font_1525256_6bxwphhntqh.svg#iconfont') format('svg');
 }
 
 .iconfont {

+ 5 - 5
mallApp/src/ext.json

@@ -1,12 +1,12 @@
 {
   "extEnable": true,
-  "extAppid": "wx99a1dfc4171efb42",
+  "extAppid": "wxe41bd5816affd0ba",
   "directCommit": false,
   "ext": {
     "account": 0,
-    "apiHost": "https://api.shop.zhiguanhua.cn",
-    "socketApiHost": "api.shop.zhiguanhua.cn",
-    "imgHost": "https://img.zhiguanhua.cn",
-    "name":"花卉"
+    "apiHost": "https://api.shop.theflorist.cn",
+    "socketApiHost": "api.shop.theflorist.cn",
+    "imgHost": "https://img.theflorist.cn",
+    "name":"花卉"
   }
 }

+ 1 - 1
mallApp/src/manifest.json

@@ -83,7 +83,7 @@
     "quickapp" : {},
     /* 小程序特有相关 线上(花卉宝) wx99a1dfc4171efb42 开发(中花卉) wxe41bd5816affd0ba */
     "mp-weixin" : {
-        "appid" : "wx99a1dfc4171efb42",
+        "appid" : "wxe41bd5816affd0ba",
         "setting" : {
             "urlCheck" : false
         },

+ 6 - 6
mallApp/src/static/iconfont/iconfont.css

@@ -1,11 +1,11 @@
 @font-face {
   font-family: 'iconfont';  /* project id 1525256 */
-  src: url('https://img.zhiguanhua.cn/iconfont/font_1525256_6243f1wxe9f.eot');
-  src: url('https://img.zhiguanhua.cn/iconfont/font_1525256_6243f1wxe9f.eot?#iefix') format('embedded-opentype'),
-  url('https://img.zhiguanhua.cn/iconfont/font_1525256_6243f1wxe9f.woff2') format('woff2'),
-  url('https://img.zhiguanhua.cn/iconfont/font_1525256_6243f1wxe9f.woff') format('woff'),
-  url('https://img.zhiguanhua.cn/iconfont/font_1525256_6243f1wxe9f.ttf') format('truetype'),
-  url('https://img.zhiguanhua.cn/iconfont/font_1525256_6243f1wxe9f.svg#iconfont') format('svg');
+  src: url('https://img.theflorist.cn/iconfont/font_1525256_6243f1wxe9f.eot');
+  src: url('https://img.theflorist.cn/iconfont/font_1525256_6243f1wxe9f.eot?#iefix') format('embedded-opentype'),
+  url('https://img.theflorist.cn/iconfont/font_1525256_6243f1wxe9f.woff2') format('woff2'),
+  url('https://img.theflorist.cn/iconfont/font_1525256_6243f1wxe9f.woff') format('woff'),
+  url('https://img.theflorist.cn/iconfont/font_1525256_6243f1wxe9f.ttf') format('truetype'),
+  url('https://img.theflorist.cn/iconfont/font_1525256_6243f1wxe9f.svg#iconfont') format('svg');
 }
 
 .iconfont {

+ 4 - 4
pt/vue.config.js

@@ -4,7 +4,7 @@ const isProduction = process.env.NODE_ENV === 'production';
 
 //http和https切换请修改这里,修改后需要重新运行 npm run serve 即可 shish 2021.4.12
 const proxyTarget =
-	process.env.NODE_ENV == 'local' ? 'https://api.pt.wixhb.com' : 'https://api.pt.wixhb.com';
+	process.env.NODE_ENV == 'local' ? 'http://api.pt.huaml.com' : 'http://api.pt.huaml.com';
 
 function resolve(dir) {
 	return path.join(__dirname, dir);
@@ -15,11 +15,11 @@ function resolve(dir) {
  * **/
 let hostUrl = ``;
 if(process.env.NODE_ENV == 'development'){
-	hostUrl = `http://img.wixhb.com/`;
+	hostUrl = `http://img.hzghd.com/`;
 }else if(process.env.NODE_ENV == 'local'){
-	hostUrl = `http://img.wixhb.com/`;
+	hostUrl = `http://img.hzghd.com/`;
 }else{
-	hostUrl = `https://img.wixhb.com/`;
+	hostUrl = `https://img.hzghd.com/`;
 }
 
 const cdn = {