Explorar o código

9-3-二维码

lhl %!s(int64=3) %!d(string=hai) anos
pai
achega
df4da40186
Modificáronse 4 ficheiros con 189 adicións e 100 borrados
  1. 99 98
      manifest.json
  2. 87 0
      pages/index/index.vue
  3. 1 1
      pages/money/account.vue
  4. 2 1
      store/index.js

+ 99 - 98
manifest.json

@@ -1,98 +1,99 @@
-{
-    "name" : "基础项目",
-    "appid" : "__UNI__7E72005",
-    "description" : "",
-    "versionName" : "1.0.0",
-    "versionCode" : "100",
-    "transformPx" : false,
-    "app-plus" : {
-        /* 5+App特有相关 */
-        "usingComponents" : true,
-        "splashscreen" : {
-            "alwaysShowBeforeRender" : true,
-            "waiting" : true,
-            "autoclose" : true,
-            "delay" : 0
-        },
-        "modules" : {},
-        /* 模块配置 */
-        "distribute" : {
-            /* 应用发布信息 */
-            "android" : {
-                /* android打包配置 */
-                "permissions" : [
-                    "<uses-feature android:name=\"android.hardware.camera\"/>",
-                    "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
-                    "<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
-                    "<uses-permission android:name=\"android.permission.CAMERA\"/>",
-                    "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
-                    "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
-                    "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
-                    "<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>",
-                    "<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
-                    "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
-                    "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
-                    "<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>"
-                ],
-                "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ]
-            },
-            "ios" : {
-                "idfa" : false
-            },
-            /* ios打包配置 */
-            "sdkConfigs" : {
-                "maps" : {},
-                "oauth" : {
-                    "weixin" : {
-                        "appid" : "",
-                        "appsecret" : "",
-                        "UniversalLinks" : ""
-                    }
-                }
-            }
-        }
-    },
-    /* SDK配置 */
-    "quickapp" : {},
-    /* 快应用特有相关 */
-    "mp-weixin" : {
-        /* 小程序特有相关 */
-        "usingComponents" : true,
-        "appid" : "",
-        "setting" : {
-            "urlCheck" : true
-        }
-    },
-    "permission" : {
-        "scope.userLocation" : {
-            "desc" : "你的位置信息将用于公众号位置接口的效果展示"
-        }
-    },
-    "h5" : {
-        "title" : "鑫旺",
-        "domain" : "",
-        "router" : {
-            "base" : "/index/",
-            "mode" : "hash"
-        },
-        "devServer" : {
-            "proxy" : {
-                "/api" : {
-                    "target" : "http://xw.liuniu946.com/api",
-                    // "changeOrigin": true,
-                    "pathRewrite" : {
-                        "/api" : "" // rewrite path
-                    }
-                }
-            },
-            "https" : false
-        },
-        "sdkConfigs" : {
-            "maps" : {
-                "qqmap" : {
-                    "key" : "VYZBZ-P2TRG-RMIQ3-ITAIN-2DKBK-CKFQQ"
-                }
-            }
-        }
-    }
-}
+{
+    "name" : "基础项目",
+    "appid" : "__UNI__7E72005",
+    "description" : "",
+    "versionName" : "1.0.0",
+    "versionCode" : "100",
+    "transformPx" : false,
+    "app-plus" : {
+        /* 5+App特有相关 */
+        "usingComponents" : true,
+        "splashscreen" : {
+            "alwaysShowBeforeRender" : true,
+            "waiting" : true,
+            "autoclose" : true,
+            "delay" : 0
+        },
+        "modules" : {},
+        /* 模块配置 */
+        "distribute" : {
+            /* 应用发布信息 */
+            "android" : {
+                /* android打包配置 */
+                "permissions" : [
+                    "<uses-feature android:name=\"android.hardware.camera\"/>",
+                    "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
+                    "<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
+                    "<uses-permission android:name=\"android.permission.CAMERA\"/>",
+                    "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
+                    "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
+                    "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
+                    "<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>",
+                    "<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
+                    "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
+                    "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
+                    "<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>"
+                ],
+                "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ]
+            },
+            "ios" : {
+                "idfa" : false
+            },
+            /* ios打包配置 */
+            "sdkConfigs" : {
+                "maps" : {},
+                "oauth" : {
+                    "weixin" : {
+                        "appid" : "",
+                        "appsecret" : "",
+                        "UniversalLinks" : ""
+                    }
+                }
+            }
+        }
+    },
+    /* SDK配置 */
+    "quickapp" : {},
+    /* 快应用特有相关 */
+    "mp-weixin" : {
+        /* 小程序特有相关 */
+        "usingComponents" : true,
+        "appid" : "",
+        "setting" : {
+            "urlCheck" : true
+        }
+    },
+    "permission" : {
+        "scope.userLocation" : {
+            "desc" : "你的位置信息将用于公众号位置接口的效果展示"
+        }
+    },
+    "h5" : {
+        "title" : "鑫旺",
+        "domain" : "",
+        "router" : {
+            "base" : "/index/",
+            "mode" : "hash"
+        },
+        "devServer" : {
+            "proxy" : {
+                "/api" : {
+                    // "target" : "http://www.zjxwcm.cn/api",
+					"target" : "http://xw.liuniu946.com/api",
+                    // "changeOrigin": true,
+                    "pathRewrite" : {
+                        "/api" : "" // rewrite path
+                    }
+                }
+            },
+            "https" : false
+        },
+        "sdkConfigs" : {
+            "maps" : {
+                "qqmap" : {
+                    "key" : "VYZBZ-P2TRG-RMIQ3-ITAIN-2DKBK-CKFQQ"
+                }
+            }
+        }
+    }
+}

+ 87 - 0
pages/index/index.vue

@@ -50,6 +50,9 @@
 					<text>分享有礼</text>
 				</view>
 			</navigator>
+			<view class="ewm" @click="openewm()" v-if="wechat_qrcode">
+				<image :src="wechat_qrcode" mode=""></image>
+			</view>
 		</view>
 		<!-- 秒杀楼层 -->
 		<!-- <seckill></seckill> -->
@@ -97,6 +100,13 @@
 			<view class="Toshare" @click="Toshare"></view>
 			<view class="Tocancel" @click="Tocancel"></view>
 		</view>
+		
+		<uni-popup ref="popup" type="center">
+			<view class="popup-box">
+				<image :src="wechat_qrcode" mode="" class="gzhqr"></image>
+				<view>长按关注公众号</view>
+			</view>
+		</uni-popup>
 	</view>
 </template>
 
@@ -133,6 +143,7 @@ export default {
 	},
 	data() {
 		return {
+			wechat_qrcode: '',//公众号二维码
 			storeList: [], //门店列表
 			shareShow: false, //分享海报
 			pageProportion: 0, //保存页面基于750宽度的比例
@@ -239,6 +250,9 @@ export default {
 	},
 	// #endif
 	methods: {
+		openewm() {
+			this.$refs.popup.open()
+		},
 		navTo(url) {
 			uni.navigateTo({
 				url: url
@@ -385,6 +399,8 @@ export default {
 					this.goodsList = goods.firstList; //最新商品
 					this.bastList = goods.bastList; //精品推荐
 					console.log(this.bastList, 'this.bastList6666666666666666666666');
+					this.wechat_qrcode = data.wechat_qrcode
+					console.log(data.wechat_qrcode)
 					this.bastBanner = data.benefit; //促销单品
 					this.$set(this, 'couponArray', data.couponList); //保存卡包券
 
@@ -790,6 +806,7 @@ page {
 	padding: 30rpx 22rpx;
 	background-color: #fff;
 	margin-bottom: 20rpx;
+	position: relative;
 	.cate-item {
 		display: flex;
 		flex-direction: column;
@@ -1252,4 +1269,74 @@ page {
 		}
 	}
 }
+.ewm {
+		width: 75rpx;
+		height: 75rpx;
+		position: absolute;
+		right: 10rpx;
+		bottom: -75rpx;
+		background-color: #fff;
+		border-radius: 50%;
+
+		box-shadow: 0 0 10rpx rgba($color: #000000, $alpha: 0.6);
+		image {
+			width: 50rpx;
+			height: 50rpx;
+			position: absolute;
+			top: 0;
+			left: 0;
+			bottom: 0;
+			right: 0;
+			margin: auto;
+		}
+
+		.ewm-tit {
+			position: absolute;
+			bottom: 10rpx;
+			font-size: 10rpx;
+		}
+
+		.closeEwm {
+			width: 40rpx;
+			height: 40rpx;
+			position: absolute;
+			top: -40rpx;
+			right: -20rpx;
+
+			image {
+				width: 100%;
+				height: 100%;
+			}
+		}
+
+	}
+	.popup-box {
+		width: 400rpx;
+		height: 450rpx;
+		background-color: #fff;
+		border-radius: 20rpx;
+		padding-top: 20rpx;
+		position: relative;
+	
+		.gzhqr {
+			display: block;
+	
+			width: 360rpx;
+			height: 360rpx;
+			margin: 0 auto 20rpx;
+		}
+	
+		view {
+			text-align: center;
+		}
+	
+		.close-img {
+			position: absolute;
+			width: 50rpx;
+			height: 50rpx;
+			top: -20rpx;
+			right: -20rpx;
+		}
+	}
+	
 </style>

+ 1 - 1
pages/money/account.vue

@@ -16,7 +16,7 @@
 				</view>
 				<view class="row b-b" v-if="tabIndex == 1">
 					<text class="tit">所属银行</text>
-					<input class="input" v-model="tabItem.orderList.bankName" type="text" placeholder="请输入账号" placeholder-class="placeholder" />
+					<input class="input" v-model="tabItem.orderList.bankName" type="text" placeholder="请输入开户银行" placeholder-class="placeholder" />
 				</view>
 			</swiper-item>
 		</swiper>

+ 2 - 1
store/index.js

@@ -8,7 +8,8 @@ Vue.use(Vuex)
 const store = new Vuex.Store({
 	state: {
 		// baseURL:"http://yrh.liuniu946.com",//'http://eb.shuibo.net',//请求地址配置 
-		baseURL:'http://xw.liuniu946.com',//请求地址配置 
+		baseURL:'http://xw.liuniu946.com',//请求地址配置 
+		// baseURL:'http://www.zjxwcm.cn',
 		urlFile:'/index',//项目部署所在文件夹
 		userInfo: {}, //登录信息
 		loginInterceptor:false,//是否打开强制登录