Handy_Cao 2 lat temu
rodzic
commit
9771216a30

+ 2 - 0
GuangZuan/miniprogram/mMine/pages/about/about/index.ts

@@ -9,6 +9,8 @@ Page({
   data: {
     /// 版本号
     version: appConfig.version,
+    /// 图片地址
+    imgUrl: appConfig.imgUrl
   },
 
   /**

+ 2 - 2
GuangZuan/miniprogram/mMine/pages/about/about/index.wxml

@@ -9,8 +9,8 @@
 
 <view class="container" style="margin-bottom: 20px;">
   <!--  logo图片  -->
-  <image class="logo" width="60%" mode="widthFix" src="http://218.17.158.45:23012/mtp2-onlineopen/uploadFile/gz/images/login_logo.png" />
-  <text style="color: #666; font-size: 14px;">版本号:{{version}}</text>
+  <image class="logo" width="60%" mode="widthFix" src="{{ imgUrl }}login_logo.png" />
+  <text style="color: #666; font-size: 14px;">版本号:{{ version }}</text>
 </view>
 
 <!-- van-cell-group -->

+ 6 - 6
GuangZuan/miniprogram/pages/home/index.ts

@@ -23,12 +23,12 @@ Page({
             {id: 2,  icon: 'home-ss',    title: '钻石首饰',   path: '/mHome/pages/jewelry/list/index'},
             {id: 3,  icon: 'home-cjjc',  title: '出境检测',   path: '/mHome/pages/inspection/list/index'}, 
             {id: 4,  icon: 'home-bsfw',  title: '保税服务',   path: '/mHome/pages/bond/list/index'}, 
-            {id: 5,  icon: 'home-bscyw', title: '保税仓业务', path: ''}, 
-            {id: 6,  icon: 'home-zsss',  title: '钻石搜索',   path: '/mHome/pages/search/index'}, 
-            {id: 7,  icon: 'home-jsq',   title: '钻石计算器', path: '/mHome/pages/calculator/index'}, 
-            {id: 8,  icon: 'home-zscx',  title: '证书查询',   path: '/mHome/pages/cerserach/index'}, 
-            {id: 9,  icon: 'home-jjjy',  title: '竞价交易',   path: ''}, 
-            {id: 10, icon: 'home-cnys',  title: '产能预售',   path: ''}, 
+            {id: 5,  icon: 'home-zsss',  title: '钻石搜索',   path: '/mHome/pages/search/index'}, 
+            {id: 6,  icon: 'home-jsq',   title: '钻石计算器', path: '/mHome/pages/calculator/index'}, 
+            {id: 7,  icon: 'home-zscx',  title: '证书查询',   path: '/mHome/pages/cerserach/index'}, 
+            {id: 8,  icon: 'home-jjjy',  title: '竞价交易',   path: ''}, 
+            {id: 9, icon: 'home-cnys',  title: '产能预售',   path: ''}, 
+            {id: 10,  icon: 'home-bscyw', title: '保税仓业务', path: ''}, 
             {id: 11, icon: 'home-jcjy',  title: '集采交易',   path: ''}],
     /// 统计
     statistics: { top: [{id: 1, title: '出售中', value: 0, class: ''}], rate: '' },

+ 2 - 0
GuangZuan/miniprogram/pages/login/index.ts

@@ -21,6 +21,8 @@ Page({
     version: appConfig.version,
     /// 是否loding
     isLoding: false,
+    /// 加载地址
+    imgUrl: appConfig.imgUrl,
   },
 
   /**

+ 1 - 1
GuangZuan/miniprogram/pages/login/index.wxml

@@ -1,5 +1,5 @@
 <!--  logo图片  -->
-<image class="logo" style="width: 60%;" mode="widthFix" src="http://218.17.158.45:23012/mtp2-onlineopen/uploadFile/gz/login_logo.png" />
+<image class="logo" style="width: 60%;" mode="widthFix" src="{{ imgUrl }}login_logo.png" />
 
 <!--  用户名  用户密码 -->
 <van-cell-group>

+ 11 - 10
GuangZuan/miniprogram/pages/mine/index.ts

@@ -10,20 +10,21 @@ Page({
    * 页面的初始数据
    */
   data: {
+    /// 图片地址
     imgUrl: appConfig.imgUrl,
     // 功能菜单项
-    menulists: [{id: 1, title: '我的库存', img: appConfig.imgUrl+'mine-wdkc', path: '/mMine/pages/myinventorys/list/index'}, 
-                {id: 2, title: "我的订单", img: appConfig.imgUrl+'mine-wddd',  path: '/mMine/pages/myorders/list/index'}, 
-                {id: 3, title: '我的履约', img: appConfig.imgUrl+'mine-wdly',    path: '/mMine/pages/myperformance/list/index'}, 
-                {id: 4, title: '我的出境', img: appConfig.imgUrl+'mine-cjjc',         path: '/mHome/pages/inspection/list/index'}, 
-                {id: 5, title: '我的保税', img: appConfig.imgUrl+'mine-bsfw',      path: '/mHome/pages/bond/list/index'}],
+    menulists: [{id: 1, title: '我的库存', img: 'mine-wdkc', path: '/mMine/pages/myinventorys/list/index'}, 
+                {id: 2, title: "我的订单", img: 'mine-wddd', path: '/mMine/pages/myorders/list/index'}, 
+                {id: 3, title: '我的履约', img: 'mine-wdly', path: '/mMine/pages/myperformance/list/index'}, 
+                {id: 4, title: '我的出境', img: 'mine-cjjc', path: '/mHome/pages/inspection/list/index'}, 
+                {id: 5, title: '我的保税', img: 'mine-bsfw', path: '/mHome/pages/bond/list/index'}],
 
     // 列表菜单项
-    tablelists: [{id: 1, title: '签约账户', iconfont: appConfig.imgUrl+'mine-qyzh',   path: '/mMine/pages/bank/index'}, 
-                 {id: 2, title: '收货地址', iconfont: appConfig.imgUrl+'mine-shdz',    path: '/mMine/pages/address/list/index'}, 
-                 {id: 3, title: '发票信息', iconfont: appConfig.imgUrl+'mine-fpxx',    path: '/mMine/pages/invoice/list/index'}, 
-                 {id: 4, title: '账户安全', iconfont: appConfig.imgUrl+'mine-mmxg',    path: '/mMine/pages/modifypwd/index'}, 
-                 {id: 5, title: '关于我们', iconfont: appConfig.imgUrl+'mine-gywm',    path: '/mMine/pages/about/about/index'}],
+    tablelists: [{id: 1, title: '签约账户', iconfont: 'mine-qyzh', path: '/mMine/pages/bank/index'}, 
+                 {id: 2, title: '收货地址', iconfont: 'mine-shdz', path: '/mMine/pages/address/list/index'}, 
+                 {id: 3, title: '发票信息', iconfont: 'mine-fpxx', path: '/mMine/pages/invoice/list/index'}, 
+                 {id: 4, title: '账户安全', iconfont: 'mine-mmxg', path: '/mMine/pages/modifypwd/index'}, 
+                 {id: 5, title: '关于我们', iconfont: 'mine-gywm', path: '/mMine/pages/about/about/index'}],
     /// 微信头像 
     avatarUrl: "",
     /// 微信昵称

+ 4 - 4
GuangZuan/miniprogram/pages/mine/index.wxml

@@ -1,6 +1,6 @@
 <view class="container">
   <!-- 我的顶部视图 -->
-  <view class="minetop" style="background-image: url('http://218.17.158.45:23012/mtp2-onlineopen/uploadFile/gz/mine-bg.png'); background-size: 100% 100%; width: 100%; ">
+  <view class="minetop" style="background-image: url('{{ imgUrl }}mine-bg.png'); background-size: 100% 100%; width: 100%; ">
     <text style="color: #000; font-size: 36rpx; height: {{ navHeight }}px; padding-top: {{ statusBarHeight }}px; align-content: center; align-items: center; display: flex; flex-direction: row;">我的</text>
     <view class="user-info" style="padding-top: 30px;">
       <van-image src="{{ avatarUrl }}" round width="50" height="50"></van-image>
@@ -43,7 +43,7 @@
   <!-- 功能菜单项 -->
   <van-grid column-num="5" wx:if="{{ menulists.count != 0 }}">
     <van-grid-item wx:for="{{ menulists }}" wx:key="id" wx:for-index="idx" wx:for-item="itm" id="{{ itm.id }}" link-type="navigateTo" url="{{ itm.path }}">
-      <image slot="icon" style="width: 25px; height: 25px;" src="{{ itm.img }}.png"></image>
+      <image slot="icon" style="width: 25px; height: 25px;" src="{{ imgUrl+itm.img }}.png"></image>
       <text slot="text" style="font-size: 14px;">{{ itm.title }}</text>
     </van-grid-item>
   </van-grid>
@@ -52,8 +52,8 @@
 
   <!-- 列表菜单项 -->
   <van-cell-group>
-    <van-cell clickable title-class="cell-title" size="large" center is-link border wx:for="{{ tablelists }}" clickable wx:key="id" wx:for-index="idx" wx:for-item="itm" id="{{itm.id}}" title="{{ itm.title }}" link-type="navigateTo" url="{{itm.path}}">
-      <image slot="icon" style="width: 25px; height: 25px;" src="{{ itm.iconfont }}.png"></image>
+    <van-cell clickable title-class="cell-title" size="large" center is-link border wx:for="{{ tablelists }}" clickable wx:key="id" wx:for-index="idx" wx:for-item="itm" id="{{ itm.id }}" title="{{ itm.title }}" link-type="navigateTo" url="{{ itm.path }}">
+      <image slot="icon" style="width: 25px; height: 25px;" src="{{ imgUrl+itm.iconfont }}.png"></image>
     </van-cell>
   </van-cell-group>