| @@ -8,7 +8,7 @@ | |||||
| "pages/orderDetail/orderDetail", | "pages/orderDetail/orderDetail", | ||||
| "pages/userProtocol/userProtocol", | "pages/userProtocol/userProtocol", | ||||
| "pages/mine/mine", | "pages/mine/mine", | ||||
| "pages/productDetail/productDetail" | |||||
| "pages/ContactUs/ContactUs" | |||||
| ], | ], | ||||
| "window": { | "window": { | ||||
| "backgroundTextStyle": "light", | "backgroundTextStyle": "light", | ||||
| @@ -20,6 +20,7 @@ | |||||
| "sitemapLocation": "sitemap.json", | "sitemapLocation": "sitemap.json", | ||||
| "usingComponents": { | "usingComponents": { | ||||
| "van-notice-bar": "@vant/weapp/notice-bar/index", | "van-notice-bar": "@vant/weapp/notice-bar/index", | ||||
| "van-toast": "@vant/weapp/toast/index" | |||||
| "van-toast": "@vant/weapp/toast/index", | |||||
| "van-popup": "@vant/weapp/popup/index" | |||||
| } | } | ||||
| } | } | ||||
| @@ -1,18 +1,48 @@ | |||||
| // pages/productDetail/productDetail.ts | // pages/productDetail/productDetail.ts | ||||
| const app = getApp() | |||||
| import request from '../../utils/request' | |||||
| Page({ | Page({ | ||||
| /** | /** | ||||
| * 页面的初始数据 | * 页面的初始数据 | ||||
| */ | */ | ||||
| data: { | data: { | ||||
| imgUrl: 'https://formall.oss-accelerate.aliyuncs.com/ga/payOrder-1.png', | |||||
| showImage: false | |||||
| }, | }, | ||||
| /** | /** | ||||
| * 生命周期函数--监听页面加载 | * 生命周期函数--监听页面加载 | ||||
| */ | */ | ||||
| onLoad() { | onLoad() { | ||||
| this.getImageUrl() | |||||
| }, | |||||
| getImageUrl() { | |||||
| const that = this | |||||
| request.get({ | |||||
| url: '/api/chat/link' | |||||
| }).then(res => { | |||||
| console.log(res, 'chatLink'); | |||||
| that.setData({ | |||||
| imgUrl: res.data.linkQrCode | |||||
| }) | |||||
| }).catch(err => { | |||||
| console.log(err, 'err'); | |||||
| }) | |||||
| }, | |||||
| checkImage() { | |||||
| this.setData({ | |||||
| showImage: true | |||||
| }) | |||||
| }, | |||||
| closeImage() { | |||||
| this.setData({ | |||||
| showImage: false | |||||
| }) | |||||
| }, | }, | ||||
| /** | /** | ||||
| @@ -0,0 +1,5 @@ | |||||
| { | |||||
| "navigationBarTitleText": "联系我们", | |||||
| "navigationBarBackgroundColor": "#ededed", | |||||
| "usingComponents": {} | |||||
| } | |||||
| @@ -0,0 +1,32 @@ | |||||
| /* pages/productDetail/productDetail.wxss */ | |||||
| page { | |||||
| background-color: #ededed; | |||||
| } | |||||
| .content { | |||||
| padding: 50rpx 0; | |||||
| .backGround { | |||||
| position: relative; | |||||
| width: 650rpx; | |||||
| height: 400rpx; | |||||
| line-height: 150rpx; | |||||
| font-size: 60rpx; | |||||
| margin: auto; | |||||
| border-radius: 50rpx; | |||||
| overflow: hidden; | |||||
| image { | |||||
| position: absolute; | |||||
| top: 0; | |||||
| left: 50%; | |||||
| transform: translateX(-50%); | |||||
| width: 100%; | |||||
| height: 100%; | |||||
| } | |||||
| } | |||||
| } | |||||
| .scaleImage { | |||||
| width: 700rpx; | |||||
| } | |||||
| @@ -0,0 +1,9 @@ | |||||
| <!--pages/productDetail/productDetail.wxml--> | |||||
| <view class="content"> | |||||
| <view class="backGround" bindtap="checkImage"> | |||||
| <image src="{{imgUrl}}" mode="widthFix" /> | |||||
| </view> | |||||
| </view> | |||||
| <van-popup show="{{ showImage }}" bind:close="closeImage"> | |||||
| <image src="{{imgUrl}}" class="scaleImage" show-menu-by-longpress="true" mode="widthFix" /> | |||||
| </van-popup> | |||||
| @@ -69,10 +69,10 @@ Page({ | |||||
| }) | }) | ||||
| }, | }, | ||||
| // 跳转至产品详情页面 | |||||
| // 跳转至联系我们页面 | |||||
| goToProductDetail() { | goToProductDetail() { | ||||
| wx.navigateTo({ | wx.navigateTo({ | ||||
| url: '/pages/productDetail/productDetail', | |||||
| url: '/pages/ContactUs/ContactUs', | |||||
| }) | }) | ||||
| }, | }, | ||||
| @@ -1,6 +1,6 @@ | |||||
| <!--pages/chat/chat.wxml--> | <!--pages/chat/chat.wxml--> | ||||
| <block wx:if="{{noticeText}}" class="noticeBar"> | <block wx:if="{{noticeText}}" class="noticeBar"> | ||||
| <van-notice-bar color="#ffffff" background="#4ac987" left-icon="volume-o" text="{{noticeText}}" bindtap="goToProductDetail" /> | |||||
| <van-notice-bar color="#ffffff" background="#4ac987" left-icon="volume-o" mode="link" text="{{noticeText}}" bindtap="goToProductDetail" /> | |||||
| </block> | </block> | ||||
| <view class="content" id='scrollSingel' bindtap="contentWatch"> | <view class="content" id='scrollSingel' bindtap="contentWatch"> | ||||
| <view class="chatItem" wx:for="{{chatList}}" wx:key="index"> | <view class="chatItem" wx:for="{{chatList}}" wx:key="index"> | ||||
| @@ -65,10 +65,10 @@ Page({ | |||||
| }) | }) | ||||
| }, | }, | ||||
| // 跳转至产品详情页面 | |||||
| // 跳转至联系我们页面 | |||||
| goToProductDetail() { | goToProductDetail() { | ||||
| wx.navigateTo({ | wx.navigateTo({ | ||||
| url: '/pages/productDetail/productDetail', | |||||
| url: '/pages/ContactUs/ContactUs', | |||||
| }) | }) | ||||
| }, | }, | ||||
| @@ -165,7 +165,8 @@ Page({ | |||||
| that.setData({ | that.setData({ | ||||
| timer: setTimeout(() => { | timer: setTimeout(() => { | ||||
| that.setData({ | that.setData({ | ||||
| logoActive: true | |||||
| logoActive: true, | |||||
| noticeText: '𝙒𝙚𝙡𝙘𝙤𝙢𝙚 𝘿𝙚𝙫𝙚𝙡𝙤𝙥𝙚𝙧 𝙔𝙒𝙌 !' | |||||
| }) | }) | ||||
| wx.showToast({ | wx.showToast({ | ||||
| title: 'Developer Mode', | title: 'Developer Mode', | ||||
| @@ -182,8 +183,7 @@ Page({ | |||||
| checkCheatCodeStatus() { | checkCheatCodeStatus() { | ||||
| if (this.data.logoActive) { | if (this.data.logoActive) { | ||||
| this.setData({ | this.setData({ | ||||
| isDevMode: true, | |||||
| noticeText: '𝙒𝙚𝙡𝙘𝙤𝙢𝙚 𝘿𝙚𝙫𝙚𝙡𝙤𝙥𝙚𝙧 𝙔𝙒𝙌 !' | |||||
| isDevMode: true | |||||
| }) | }) | ||||
| } | } | ||||
| }, | }, | ||||
| @@ -1,7 +1,7 @@ | |||||
| <!--index.wxml--> | <!--index.wxml--> | ||||
| <view class="content"> | <view class="content"> | ||||
| <block wx:if="{{noticeText}}" class="noticeBar"> | <block wx:if="{{noticeText}}" class="noticeBar"> | ||||
| <van-notice-bar color="#ffffff" background="#4ac987" left-icon="volume-o" text="{{noticeText}}" bindtap="goToProductDetail" /> | |||||
| <van-notice-bar color="#ffffff" background="#4ac987" left-icon="volume-o" mode="link" text="{{noticeText}}" bindtap="goToProductDetail" /> | |||||
| </block> | </block> | ||||
| <view class="{{logoActive ? 'logo active' : 'logo' }}"> | <view class="{{logoActive ? 'logo active' : 'logo' }}"> | ||||
| @@ -1,4 +0,0 @@ | |||||
| { | |||||
| "navigationBarTitleText": "关于我们", | |||||
| "usingComponents": {} | |||||
| } | |||||
| @@ -1 +0,0 @@ | |||||
| /* pages/productDetail/productDetail.wxss */ | |||||
| @@ -1,2 +0,0 @@ | |||||
| <!--pages/productDetail/productDetail.wxml--> | |||||
| <text>关于我们</text> | |||||
| @@ -36,7 +36,7 @@ | |||||
| "miniprogram/pages/orderDetail/orderDetail.js", | "miniprogram/pages/orderDetail/orderDetail.js", | ||||
| "miniprogram/pages/userProtocol/userProtocol.js", | "miniprogram/pages/userProtocol/userProtocol.js", | ||||
| "miniprogram/pages/mine/mine.js", | "miniprogram/pages/mine/mine.js", | ||||
| "miniprogram/components/userNumberChkeck/userNumberChkeck.js", "miniprogram/pages/productDetail/productDetail.js", | |||||
| "miniprogram/components/userNumberChkeck/userNumberChkeck.js", "miniprogram/pages/ContactUs/productDetail.js", | |||||
| ], | ], | ||||
| "exclude": [ | "exclude": [ | ||||
| "node_modules" | "node_modules" | ||||