谢杰标 пре 3 година
родитељ
комит
d704da8f86
3 измењених фајлова са 11 додато и 10 уклоњено
  1. 1 1
      common/config.js
  2. 8 7
      pages/bill/index.vue
  3. 2 2
      pages/vcard/index.vue

+ 1 - 1
common/config.js

@@ -1,7 +1,7 @@
 // test 测试环境
 
 const dev = {
-  BASE_URL: "http://120.79.166.78:19013",
+  BASE_URL: "https://testapi.xyyxt.net",
   BASE_IMG_URL: "https://file-dev.xyyxt.net/",
 };
 

+ 8 - 7
pages/bill/index.vue

@@ -56,12 +56,11 @@ export default {
   },
   onLoad(options) {
     this.options = options;
-    this.share();
     uni.setStorageSync("BillHerf", window.location.href);
   },
   onShow() {
     backOpenId(this.login);
-    authorize();
+    // authorize();
     this.getSharePoster();
   },
   components: {
@@ -72,7 +71,9 @@ export default {
     getSharePoster() {
       getSharePoster(this.options).then((res) => {
         this.billDetail = res;
-        this.posterConfig = this.changeData(JSON.parse(res.posterConfig));
+        let posterConfig = JSON.parse(res.posterConfig);
+        this.posterConfig = this.changeData(posterConfig);
+        this.share(posterConfig);
       });
     },
     changeData(data) {
@@ -115,12 +116,12 @@ export default {
         distributionId: this.options.distributionId,
       });
     },
-    share() {
+    share(data) {
       wechat
         .share({
-          title: "杨大毛非常帅",
-          desc: "JAVA超级专家",
-          imgUrl: "",
+          title: this.billDetail.activityName,
+          desc: data.advertise.name,
+          imgUrl: this.$method.splitImgHost(data.goods.name),
           link: window.location.href,
         })
         .then((res) => {

+ 2 - 2
pages/vcard/index.vue

@@ -26,10 +26,10 @@
       </view>
     </view>
     <view class="vcard-ward-tips">
-      <view class="vcard-ward-tips-title"> 活动规则说明 </view>
+      <!-- <view class="vcard-ward-tips-title"> 活动规则说明 </view>
       <view class="vcard-ward-tips-text">
         文案文案规则说明文案文案规则说明,文案文案规则说明文案文案规则说明文案文案明,文案文案规则说明文案文案规则说明文案文案规则说明,文案文案规则说明文案文案规则说明文案文案规则说明,文案文案规则说明文案文案规则说明文案文案规则说明,文案文案规则说明
-      </view>
+      </view> -->
     </view>
     <view class="vcard-ward-btns fl_b">
       <view @click="toLogin">登录</view>