Browse Source

commit - m

zhengjinyi 4 năm trước cách đây
mục cha
commit
fb7ed24251
5 tập tin đã thay đổi với 32 bổ sung23 xóa
  1. 2 1
      .gitignore
  2. 17 17
      main.js
  3. 10 2
      pages/goods/product.vue
  4. 1 1
      search/pages/search/search-instrument.vue
  5. 2 2
      services/ajax.env.js

+ 2 - 1
.gitignore

@@ -2,4 +2,5 @@ unpackage/
 .gitignore
 common/config/config.js
 services/ajax.env.js
-.idea/
+.idea/
+.hbuilderx/launch.json

+ 17 - 17
main.js

@@ -26,22 +26,22 @@ Vue.prototype.$getStorage = function(key){
  * 友盟+小程序统计
  */
 // #ifdef MP-WEIXIN
-import { umtrackWxKey } from '@/utils/config.js'
-import uma from 'umtrack-wx';
-uma.init({
-	appKey: umtrackWxKey, //由友盟分配的APP_KEY
-	// 使用Openid进行统计,此项为false时将使用友盟+uuid进行用户统计。
-	// 使用Openid来统计微信小程序的用户,会使统计的指标更为准确,对系统准确性要求高的应用推荐使用Openid。
-	useOpenid: true,
-	// 使用openid进行统计时,是否授权友盟自动获取Openid,
-	// 如若需要,请到友盟后台"设置管理-应用信息"(https://mp.umeng.com/setting/appset)中设置appId及secret
-	autoGetOpenid: true,
-	debug: true, //是否打开调试模式
-	uploadUserInfo: false // 自动上传用户信息,设为false取消上传,默认为false
-});
-uma.install = function (Vue) {
-	Vue.prototype.$uma = uma;
-}
+// import { umtrackWxKey } from '@/utils/config.js'
+// import uma from 'umtrack-wx';
+// uma.init({
+// 	appKey: umtrackWxKey, //由友盟分配的APP_KEY
+// 	// 使用Openid进行统计,此项为false时将使用友盟+uuid进行用户统计。
+// 	// 使用Openid来统计微信小程序的用户,会使统计的指标更为准确,对系统准确性要求高的应用推荐使用Openid。
+// 	useOpenid: true,
+// 	// 使用openid进行统计时,是否授权友盟自动获取Openid,
+// 	// 如若需要,请到友盟后台"设置管理-应用信息"(https://mp.umeng.com/setting/appset)中设置appId及secret
+// 	autoGetOpenid: true,
+// 	debug: true, //是否打开调试模式
+// 	uploadUserInfo: false // 自动上传用户信息,设为false取消上传,默认为false
+// });
+// uma.install = function (Vue) {
+// 	Vue.prototype.$uma = uma;
+// }
 // #endif
 
 
@@ -51,7 +51,7 @@ Vue.prototype.$store = store;
 Vue.prototype.$util = {msg,prePage,modal};
 Vue.prototype.$api = Api;
 Vue.prototype.$reg = Regs;
-Vue.use(uma);
+// Vue.use(uma);
 App.mpType = 'app'
 
 const app = new Vue({

+ 10 - 2
pages/goods/product.vue

@@ -122,7 +122,8 @@
 						<view class="title-tab">商品详情</view>
 					</view>
 					<view class="content tui-banner product-rich-text tui-skeleton-rect">
-						<parser :html="html" :img-mode="widthFix"></parser>
+						<parser :html="html" :img-mode="widthFix" v-if="!goodsData.isNoneDisabled"></parser>
+						<view class="product-rich-text-none" v-else>暂无商品信息</view>
 					</view>
 				</view>	
 				<view class="product-details service product-details1">
@@ -1239,10 +1240,17 @@
 				.title-tab{
 					background-color: #F7F7F7;
 					color: $text-color;
-					
 				}
 			}
 		}
+		.product-rich-text-none{
+			box-sizing: border-box;
+			padding: 0 24rpx;
+			text-align: left;
+			font-size: 24rpx;
+			color: #999999;
+			line-height: 60rpx;
+		}
 		.content-none{
 			width: 100%;
 			height: 80rpx;

+ 1 - 1
search/pages/search/search-instrument.vue

@@ -170,7 +170,7 @@
 		    }
 			return {
 			  title: `做项目找仪器,上采美`,
-			  path: `search/pages/search-instrument?type=share&keyWord=${this.listQuery.keyword}`
+			  path: `search/pages/search/search-instrument?type=share&keyWord=${this.listQuery.keyword}`
 			}
 		},
 		onShow() {

+ 2 - 2
services/ajax.env.js

@@ -4,8 +4,8 @@ if(process.env.NODE_ENV === 'development'){
 	// URL_CONFIG = 'http://192.168.2.68:8008'	 //涛涛联调地址
 	// URL_CONFIG = 'http://192.168.2.67:8008'	 //裴裴联调地址
 	// URL_CONFIG = 'http://192.168.2.75:8008'	 //超超联调地址
-    // URL_CONFIG = 'https://spi-b.caimei365.com'	 //采美测试地址
-	URL_CONFIG = 'https://spi.caimei365.com'
+    URL_CONFIG = 'https://spi-b.caimei365.com'	 //采美测试地址
+	// URL_CONFIG = 'https://spi.caimei365.com'
 }else{
     // 生产环境
 	// URL_CONFIG = 'https://spi-b.caimei365.com'