Commit 0fa7c84f98893d6a2a242b9048f4168f8d516ca6

Authored by yvan.ni
1 parent 99905464

小程序到期的是显示

@@ -161,7 +161,7 @@ App({ @@ -161,7 +161,7 @@ App({
161 161
162 if (!th.err_going) { 162 if (!th.err_going) {
163 wx.reLaunch({ 163 wx.reLaunch({
164 - url: "/pages/error/error?msg=该商城已到期,暂停浏览1!\r\n可联系:" + res.data.data.store_tel, 164 + url: "/packageD/pages/error/error?msg=该商城已到期,暂停浏览1!\r\n可联系:" + res.data.data.store_tel,
165 }); 165 });
166 } 166 }
167 }) 167 })
@@ -170,7 +170,7 @@ App({ @@ -170,7 +170,7 @@ App({
170 170
171 if (!th.err_going) { 171 if (!th.err_going) {
172 wx.reLaunch({ 172 wx.reLaunch({
173 - url: "/pages/error/error?msg=还未购买小程序", 173 + url: "/packageD/pages/error/error?msg=还未购买小程序",
174 }); 174 });
175 } 175 }
176 176
@@ -190,7 +190,7 @@ App({ @@ -190,7 +190,7 @@ App({
190 th.promiseGet('/api/weshop/store/get/' + t.stoid, {}).then(res => { 190 th.promiseGet('/api/weshop/store/get/' + t.stoid, {}).then(res => {
191 if (!th.err_going) { 191 if (!th.err_going) {
192 wx.reLaunch({ 192 wx.reLaunch({
193 - url: "/pages/error/error?msg=该商城已到期,暂停浏览1!\r\n可联系:" + res.data.data.store_tel, 193 + url: "/packageD/pages/error/error?msg=该商城已到期,暂停浏览1!\r\n可联系:" + res.data.data.store_tel,
194 }); 194 });
195 } 195 }
196 }) 196 })
@@ -198,7 +198,7 @@ App({ @@ -198,7 +198,7 @@ App({
198 else if (tt && tt.isbuy == 0) { 198 else if (tt && tt.isbuy == 0) {
199 if (!th.err_going) { 199 if (!th.err_going) {
200 wx.reLaunch({ 200 wx.reLaunch({
201 - url: "/pages/error/error?msg=还未购买小程序", 201 + url: "/packageD/pages/error/error?msg=还未购买小程序",
202 }); 202 });
203 } 203 }
204 204
app.json
@@ -203,7 +203,8 @@ @@ -203,7 +203,8 @@
203 "pages/user/member/cash_record/cash_record", 203 "pages/user/member/cash_record/cash_record",
204 "pages/gift/gift", 204 "pages/gift/gift",
205 205
206 - "pages/shop/order_detail/order_detail" 206 + "pages/shop/order_detail/order_detail",
  207 + "pages/error/error"
207 ] 208 ]
208 } 209 }
209 210
packageD/pages/error/error.js 0 → 100644
  1 +var t = require("../../../utils/common.js");var os=getApp().globalData.setting;
  2 +Page({
  3 + data:{
  4 + store:null,
  5 + imghots: os.imghost,
  6 + msg:"",
  7 + },
  8 +
  9 + onLoad:function(t){
  10 + getApp().err_going=1;
  11 + var th=this,app = getApp();
  12 + app.getConfig(function(e){
  13 + th.setData({ store:e,msg:t.msg});
  14 + wx.setNavigationBarTitle({
  15 + title: e.store_name//页面标题
  16 + })
  17 + })
  18 + },
  19 +
  20 + phone:function (){
  21 + if(this.data.msg.indexOf("可联系:")!=-1){
  22 + var tel=this.data.msg.split("可联系:")[1];
  23 + if(tel){
  24 + wx.makePhoneCall({
  25 + phoneNumber: tel,
  26 + })
  27 + }
  28 + }
  29 + }
  30 +
  31 +
  32 +});
packageD/pages/error/error.json 0 → 100644
  1 +{}
0 \ No newline at end of file 2 \ No newline at end of file
packageD/pages/error/error.wxml 0 → 100644
  1 +<view class="all_page">
  2 + <view class="content">
  3 + <view><image class='logo' src="{{imghots+store.store_logo}}"> </image></view>
  4 + <view class="title">{{store.store_name}}</view>
  5 + <view>{{store.store_desc}}</view>
  6 + <view bindtap="phone" class="err"><text>{{msg}}</text></view>
  7 + </view>
  8 +</view>
0 \ No newline at end of file 9 \ No newline at end of file
packageD/pages/error/error.wxss 0 → 100644
  1 +.all_page{
  2 + position: fixed;
  3 + height: 100%;
  4 + width: 100%;
  5 + background: #fff;
  6 + justify-content: center;/*水平居中*/
  7 +}
  8 +.all_page .content{
  9 + font-size: 30rpx;
  10 + text-align: center;
  11 + height: 400px;
  12 + width: 100%;
  13 + position: absolute;
  14 + top: 50%;
  15 + margin-top:-200px;
  16 +}
  17 +.logo{width: 140rpx; height: 140rpx; border-radius:50% }
  18 +.all_page .content .title{
  19 + font-size: 36rpx; margin: 20rpx 0
  20 +}
  21 +
  22 +.all_page .err{
  23 + color:red;
  24 + font-size: 36rpx;
  25 + margin-top: 300rpx;
  26 +}
0 \ No newline at end of file 27 \ No newline at end of file
pages/index/index/index.js
@@ -714,11 +714,11 @@ Page({ @@ -714,11 +714,11 @@ Page({
714 setappdata: function (t) { 714 setappdata: function (t) {
715 if (t && t.isout == 1) 715 if (t && t.isout == 1)
716 wx.reLaunch({ 716 wx.reLaunch({
717 - url: "/pages/error/error?msg=该商城已到期,暂停浏览!\r\n可联系:" + getApp().globalData.config.store_tel, 717 + url: "/packageD/pages/error/error?msg=该商城已到期,暂停浏览!\r\n可联系:" + getApp().globalData.config.store_tel,
718 }); 718 });
719 if (t && t.isbuy == 0) 719 if (t && t.isbuy == 0)
720 wx.reLaunch({ 720 wx.reLaunch({
721 - url: "/pages/error/error?msg=还未购买小程序", 721 + url: "/packageD/pages/error/error?msg=还未购买小程序",
722 }); 722 });
723 }, 723 },
724 //---加载更多是靠这个函数---- 724 //---加载更多是靠这个函数----
pages/user/index/index.js
@@ -485,11 +485,11 @@ Page({ @@ -485,11 +485,11 @@ Page({
485 var t = getApp().globalData.wxapp_buy_obj; 485 var t = getApp().globalData.wxapp_buy_obj;
486 if (t && t.isout == 1) 486 if (t && t.isout == 1)
487 wx.navigateTo({ 487 wx.navigateTo({
488 - url: "/pages/error/error?msg=小程序已经过期", 488 + url: "/packageD/pages/error/error?msg=小程序已经过期",
489 }); 489 });
490 if (t && t.isbuy == 0) 490 if (t && t.isbuy == 0)
491 wx.navigateTo({ 491 wx.navigateTo({
492 - url: "/pages/error/error?msg=还未购买小程序", 492 + url: "/packageD/pages/error/error?msg=还未购买小程序",
493 }); 493 });
494 }, 494 },
495 495