qukaidi 4 vuotta sitten
vanhempi
commit
8a47b5e684
2 muutettua tiedostoa jossa 34 lisäystä ja 2 poistoa
  1. 31 2
      pages/login/register_3.vue
  2. 3 0
      pages/me/index.vue

+ 31 - 2
pages/login/register_3.vue

@@ -104,10 +104,21 @@
 				</view>
 			</u-card>
 			<u-form-item :border-bottom="false">
-				<view style="margin:0 30rpx;">
+				<view style="margin:0 30rpx;" class="u-flex">
 					<u-checkbox-group>
-						<u-checkbox v-model="protocol">同意《用户协议》及《隐私政策》</u-checkbox>
+						<u-checkbox v-model="protocol">
+						</u-checkbox>
 					</u-checkbox-group>
+					<view class="u-flex">
+						同意
+						<view class="" @click="openPdf(xy)">
+							《用户协议》
+						</view>
+						及
+						<view class="" @click="openPdf(zc)">
+							《隐私政策》
+						</view>
+					</view>
 				</view>
 			</u-form-item>
 		</u-form>
@@ -164,6 +175,24 @@
 			this.getTasknum()
 		},
 		methods: {
+			openPdf(x) {
+				if(x=='xy'){
+					uni.openDocument({
+						filePath: '../../static/pdf/xy.pdf',
+						success: function(res) {
+							console.log('打开文档成功');
+						}
+					});
+				}else{
+					uni.openDocument({
+						filePath: '../../static/pdf/zc.pdf',
+						success: function(res) {
+							console.log('打开文档成功');
+						}
+					});
+				}
+				
+			},
 			getAgentArea() {
 				uni.showLoading({
 					title: '加载中...'

+ 3 - 0
pages/me/index.vue

@@ -172,6 +172,9 @@
 					<u-cell-item title="经销商库存" @click="inPage(10)">
 						<u-icon slot="icon" size="42" name="points" custom-prefix="van-icon"></u-icon>
 					</u-cell-item>
+					<u-cell-item v-if="this.$store.state.storeInfo.sourceFlag==1" title="修改地理位置" @click="inPage(12)">
+						<u-icon slot="icon" size="42" name="points" custom-prefix="van-icon"></u-icon>
+					</u-cell-item>
 					<u-cell-item title="设置" @click="inPage(11)">
 						<u-icon slot="icon" size="42" name="setting-o" custom-prefix="van-icon"></u-icon>
 					</u-cell-item>