From 5f902ea187c8d36e11ca129d02bf5ad72b29005d Mon Sep 17 00:00:00 2001 From: 陶杰 <1378534974@qq.com> Date: 星期四, 17 十月 2024 00:40:09 +0800 Subject: [PATCH] 1. --- pages/home/components/home-banner-imgs.vue | 2 sub_pages/supplier/advertising/advertising.vue | 4 +- manifest.json | 5 +- pages.json | 31 ++++++++------- sub_pages/supplier/customer_service/customer_service.vue | 38 +++++++++++++----- pages/user/supplier-user.vue | 2 6 files changed, 50 insertions(+), 32 deletions(-) diff --git a/manifest.json b/manifest.json index bdb4255..7553c85 100644 --- a/manifest.json +++ b/manifest.json @@ -49,7 +49,7 @@ "quickapp" : {}, /* 快应用特有相关 */ "mp-weixin" : { - "appid" : "wx1441324401626290", + "appid" : "wx3203fd935a6ffe09", "setting" : { "urlCheck" : false, "es6" : true, @@ -62,7 +62,8 @@ } }, "requiredPrivateInfos" : [ "chooseLocation" ], - "plugins" : {} + "plugins" : {}, + "lazyCodeLoading": "requiredComponents" }, // "chooseLocation" : { // "version" : "1.0.10", diff --git a/pages.json b/pages.json index a7c1008..f0c07e5 100644 --- a/pages.json +++ b/pages.json @@ -73,20 +73,6 @@ } }, { - "path": "pages/advertising/advertising", - "style": { - "navigationBarTitleText": "广告", - "enablePullDownRefresh": true - } - }, - { - "path": "pages/customer_service/customer_service", - "style": { - "navigationBarTitleText": "客服中心", - "enablePullDownRefresh": true - } - }, - { "path": "pages/user/user-pwd/user-pwd", "style": { "navigationBarTitleText": "修改密码", @@ -172,7 +158,22 @@ ], "subPackages": [{ "root": "sub_pages/supplier", - "pages": [{ + "pages": [ + { + "path": "advertising/advertising", + "style": { + "navigationBarTitleText": "广告", + "enablePullDownRefresh": true + } + }, + { + "path": "customer_service/customer_service", + "style": { + "navigationBarTitleText": "客服中心", + "enablePullDownRefresh": true + } + }, + { "path": "protocol", "style": { "navigationBarTitleText": "协议", diff --git a/pages/home/components/home-banner-imgs.vue b/pages/home/components/home-banner-imgs.vue index 10ace2f..f88399d 100644 --- a/pages/home/components/home-banner-imgs.vue +++ b/pages/home/components/home-banner-imgs.vue @@ -70,7 +70,7 @@ }, toDetail(item) { uni.navigateTo({ - url: `/pages/advertising/advertising?id=${item.id}` + url: `/sub_pages/supplier/advertising/advertising?id=${item.id}` }) } }, diff --git a/pages/user/supplier-user.vue b/pages/user/supplier-user.vue index 2c552bf..2c87d6e 100644 --- a/pages/user/supplier-user.vue +++ b/pages/user/supplier-user.vue @@ -373,7 +373,7 @@ <view class="user-util m-t-12 flex" v-if="selftype==='supplier'||selftype==='customer' || !selftype" - @click="goto('/pages/customer_service/customer_service',false)"> + @click="goto('/sub_pages/supplier/customer_service/customer_service',false)"> <view class="title">我的客服</view> <view class="right-icon"> <uni-icons type="right"></uni-icons> diff --git a/pages/advertising/advertising.vue b/sub_pages/supplier/advertising/advertising.vue similarity index 96% rename from pages/advertising/advertising.vue rename to sub_pages/supplier/advertising/advertising.vue index c83d4ba..b3f6dbd 100644 --- a/pages/advertising/advertising.vue +++ b/sub_pages/supplier/advertising/advertising.vue @@ -97,7 +97,7 @@ // partnerUserId = that.currentInfo.customerDTO.partnerId // } // ?partnerUserId=${partnerUserId}&id=${this.id}&shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''} - var url =`/pages/advertising/advertising?id=${this.id}`; //你的转发页面路径拼接参数 + var url =`/sub_pages/supplier/advertising/advertising?id=${this.id}`; //你的转发页面路径拼接参数 return { title: this.dto.name || this.dto.title || '花满芫广告', path: url, @@ -122,7 +122,7 @@ // path: url, // } var url = - `/pages/advertising/advertising?id=${this.id}`; //你的转发页面路径拼接参数 + `/sub_pages/supplier/advertising/advertising?id=${this.id}`; //你的转发页面路径拼接参数 return { title: this.dto.name || this.dto.title || '花满芫广告', path: url, diff --git a/pages/customer_service/customer_service.vue b/sub_pages/supplier/customer_service/customer_service.vue similarity index 67% rename from pages/customer_service/customer_service.vue rename to sub_pages/supplier/customer_service/customer_service.vue index ea6e8ba..f25e705 100644 --- a/pages/customer_service/customer_service.vue +++ b/sub_pages/supplier/customer_service/customer_service.vue @@ -19,7 +19,7 @@ </view> <view slot="value" > <button open-type="contact" class="component-button-contact" @handleContact="handleContact"> - <image class="icon-clock m-r-6 m-t-2" src="../../static/common/icon-call.png"></image> + <image class="icon-clock m-r-6 m-t-2" src="https://hmy-flower.oss-cn-shanghai.aliyuncs.com/63/63b766e95c1d4232a8d39505cddd49e7icon-wx.png"></image> </button> <button open-type="contact" class="component-button-contact" @handleContact="handleContact"> 我的客服 @@ -28,7 +28,7 @@ </u-cell> </u-cell-group> - <!-- <u-cell-group> + <u-cell-group> <u-cell title="单元格" value="内容" @@ -37,8 +37,12 @@ > <view slot="title" class="title" >新用户咨询</view> <view slot="value"> - <image class="icon-clock m-r-6 m-t-2" src="../../static/common/icon-call.png"></image> - <view>新手咨询</view> + <button open-type="contact" class="component-button-contact" @handleContact="handleContact"> + <image class="icon-clock m-r-6 m-t-2" src="https://hmy-flower.oss-cn-shanghai.aliyuncs.com/63/63b766e95c1d4232a8d39505cddd49e7icon-wx.png"></image> + </button> + <button open-type="contact" class="component-button-contact" @handleContact="handleContact"> + 新手咨询 + </button> </view> </u-cell> </u-cell-group> @@ -52,8 +56,12 @@ > <view slot="title" class="title" >订单客服(改单/补退/特殊需求)</view> <view slot="value"> - <image class="icon-clock m-r-6 m-t-2" src="../../static/common/icon-call.png"></image> - <view>订单客服</view> + <button open-type="contact" class="component-button-contact" @handleContact="handleContact"> + <image class="icon-clock m-r-6 m-t-2" src="https://hmy-flower.oss-cn-shanghai.aliyuncs.com/63/63b766e95c1d4232a8d39505cddd49e7icon-wx.png"></image> + </button> + <button open-type="contact" class="component-button-contact" @handleContact="handleContact"> + 订单客服 + </button> </view> </u-cell> </u-cell-group> @@ -67,8 +75,12 @@ > <view slot="title" class="title" >物流客服</view> <view slot="value"> - <image class="icon-clock m-r-6 m-t-2" src="../../static/common/icon-call.png"></image> - <view>物流客服</view> + <button open-type="contact" class="component-button-contact" @handleContact="handleContact"> + <image class="icon-clock m-r-6 m-t-2" src="https://hmy-flower.oss-cn-shanghai.aliyuncs.com/63/63b766e95c1d4232a8d39505cddd49e7icon-wx.png"></image> + </button> + <button open-type="contact" class="component-button-contact" @handleContact="handleContact"> + 物流客服 + </button> </view> </u-cell> </u-cell-group> @@ -82,11 +94,15 @@ > <view slot="title" class="title" >售后客服</view> <view slot="value"> - <image class="icon-clock m-r-6 m-t-2" src="../../static/common/icon-call.png"></image> - <view>售后客服</view> + <button open-type="contact" class="component-button-contact" @handleContact="handleContact"> + <image class="icon-clock m-r-6 m-t-2" src="https://hmy-flower.oss-cn-shanghai.aliyuncs.com/63/63b766e95c1d4232a8d39505cddd49e7icon-wx.png"></image> + </button> + <button open-type="contact" class="component-button-contact" @handleContact="handleContact"> + 售后客服 + </button> </view> </u-cell> - </u-cell-group> --> + </u-cell-group> </view> -- Gitblit v1.9.3