4 커밋 2853485034 ... 6923aa55bb

작성자 SHA1 메시지 날짜
  panyong 6923aa55bb 接口域名管理优化 1 년 전
  panyong 88c588b516 商品详情登录成功回调 1 년 전
  panyong 8400eda3f0 商品详情登录成功回调 1 년 전
  panyong cd31348815 project.config.json 更新 1 년 전

+ 2 - 1
htmldev/shiningWxMini/components/business-detail-large/index.json

@@ -1,6 +1,7 @@
 {
   "component": true,
   "usingComponents": {
-    "van-action-sheet": "@vant/weapp/action-sheet/index"
+    "van-action-sheet": "@vant/weapp/action-sheet/index",
+    "van-icon": "@vant/weapp/icon/index"
   }
 }

+ 10 - 0
htmldev/shiningWxMini/components/business-detail-large/index.scss

@@ -18,6 +18,16 @@
     height: 112rpx;
   }
 
+  .business-name-icon {
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    width: 112rpx;
+    height: 112rpx;
+    font-size: 40rpx;
+    color: rgb(139, 157, 177);
+  }
+
   .value {
     width: 484rpx;
     margin-right: 62rpx;

+ 9 - 0
htmldev/shiningWxMini/components/business-detail-large/index.wxml

@@ -1,4 +1,13 @@
 <view class="business-info">
+  <view
+    class="box">
+    <van-icon
+      custom-class="business-name-icon"
+      name="manager" />
+    <view
+      class="value">供应商名称:{{shopDetail.user_name}}
+    </view>
+  </view>
   <view
     class="box"
     bind:tap="openLocationBridge"

+ 3 - 0
htmldev/shiningWxMini/pages/goodsDetail/goodsDetail.js

@@ -89,6 +89,9 @@ Page({
    */
   onShareAppMessage() {
 
+  },
+  bindCallBack() {
+    this.fetchProductDetail()
   },
   async fetchProductDetail() {
     try {

+ 1 - 1
htmldev/shiningWxMini/pages/goodsDetail/goodsDetail.json

@@ -3,5 +3,5 @@
     "customer-tab": "../../components/customer-tab/index",
     "business-detail-large": "../../components/business-detail-large"
   },
-  "navigationBarTitleText": "预售商品"
+  "navigationBarTitleText": "商品详情"
 }

+ 2 - 1
htmldev/shiningWxMini/project.config.json

@@ -53,7 +53,8 @@
     "useCompilerPlugins": [
       "sass"
     ],
-    "useStaticServer": true
+    "useStaticServer": true,
+    "condition": false
   },
   "compileType": "miniprogram",
   "libVersion": "2.15.0",

+ 13 - 6
htmldev/shiningWxMini/utils/config.js

@@ -1,13 +1,20 @@
-const envDomain = {
-  // apiDomain: 'https://shining.codedreamit.com',
-  // h5Domain: 'https://shining-h5.codedreamit.com',
-  // vrDomain: 'https://shining-h5-1.codedreamit.com'
-  // ---------------华丽的分割线---------------
+// 测试环境
+const devDomain = {
+  apiDomain: 'https://shining.codedreamit.com',
+  h5Domain: 'https://shining-h5.codedreamit.com',
+  vrDomain: 'https://shining-h5-1.codedreamit.com'
+}
+
+// 生产环境
+const prodDomain = {
   apiDomain: 'https://shining-api.chazhujianghu.com',
   h5Domain: 'https://shining-h5.chazhujianghu.com',
   vrDomain: 'https://shining-h5-1.chazhujianghu.com'
 }
 
 module.exports = {
-  envDomain
+  envDomain: {
+    // ...devDomain
+    ...prodDomain
+  }
 }