Browse Source

打包h5的修改

xiaomei 1 year ago
parent
commit
5a5e2b65cd
5 changed files with 14 additions and 6 deletions
  1. 4 0
      src/app.scss
  2. 1 1
      src/pages/index/index.vue
  3. 1 1
      src/pages/my/index.vue
  4. 3 3
      src/pagesB/my/myWallet.vue
  5. 5 1
      src/utils/run_now.js

+ 4 - 0
src/app.scss

@@ -160,6 +160,10 @@ uni-input {
     color: #888;
 }
 
+.zanwuimg{
+    width: 100%;
+}
+
 .hover_a{
     color: #17bb87;
 }

+ 1 - 1
src/pages/index/index.vue

@@ -8,7 +8,7 @@
             <!-- 公告 -->
             <view class="head_notice clearfix">
                 <view class="notice_title" @click="goNoticeList">
-                    <image class="gg_img" src="@/static/img/gg.png"></image>
+                    <image class="gg_img" src="/static/img/gg.png"></image>
                 </view>
                 <swiper class="notice_swiper" vertical autoplay circular :interval="5000" :duration="1000">
                     <swiper-item v-for="(item, index) in not_list" :key="index" @click="toDetail(item.article_id)">

+ 1 - 1
src/pages/my/index.vue

@@ -4,7 +4,7 @@
             <!-- 用户信息 -->
             <view class="uerInfo mar_t16 flex_r">
                 <view class="user_img">
-                    <image v-if="!userinfo.head_pic" class="image" src="@/static/my/head.png" @click="toLogin"></image>
+                    <image v-if="!userinfo.head_pic" class="image" src="/static/my/head.png" @click="toLogin"></image>
                     <image v-else @click="upheadimg" class="image" :src="userinfo.head_pic"></image>
                     <view class="coupon_info flex_r flex_ac" @tap="goToAutonym" v-if="isShiMing">
                         完成实名认证,享受更多权益

+ 3 - 3
src/pagesB/my/myWallet.vue

@@ -14,17 +14,17 @@
                 </div> -->
                 <div class="i_num" @click="goto('/pages/accountDetails/teaBaby')">
                     <p class="flex_r flex_ac flex_jc">
-                        <image src="@/static/wallet/6.png" class="ico" /><span>茶宝</span></p>
+                        <image src="/static/wallet/6.png" class="ico" /><span>茶宝</span></p>
                     <p class="dinB">{{userinfo.cha_bao}}</p>
                 </div>
                 <div class="i_num" @click="goto('/pagesB/accountDetails/TeaC')">
                     <p class="flex_r flex_ac flex_jc">
-                        <image src="@/static/wallet/8.png" class="ico" /><span>TeaC {{ teacCountCny }}</span></p>
+                        <image src="/static/wallet/8.png" class="ico" /><span>TeaC {{ teacCountCny }}</span></p>
                     <p class="dinB">{{userinfo.teac}}</p>
                 </div>
                 <div class="i_num" @click="goto('/pagesB/accountDetails/OriginalShares')">
                     <p class="flex_r flex_ac flex_jc">
-                        <image src="@/static/wallet/5.png" class="ico" /><span>OE {{ equityCountCny }}</span></p>
+                        <image src="/static/wallet/5.png" class="ico" /><span>OE {{ equityCountCny }}</span></p>
                     <p class="dinB">{{localInfo.original_equity || 0}}</p>
                 </div>
             </view>

+ 5 - 1
src/utils/run_now.js

@@ -42,8 +42,12 @@ uni.Location = () => {
         let adres = getCache("location");
         if (!adres) {
             uni.getLocation({
+                // #ifdef MP-WEIXIN
                 type: 'gcj02',
-                // type: 'wgs84',
+                //#endif
+                // #ifdef H5
+                type: 'wgs84',
+                //#endif
                 isHighAccuracy: true,
                 success(res) {
                     let location = { lat: res.latitude, lng: res.longitude };