zhanghui 2 years ago
parent
commit
4408ad635f

+ 1 - 1
App.vue

@@ -16,7 +16,7 @@
                         uni.removeStorageSync('parent_member_id');
                         if (!res.data.data.phoneIsBind){
                             uni.showModal({
-                                title:'绑定手机号',
+                                title:'温馨提示',
                                 content:'请绑定手机号,以便为你提供服务',
                                 success:res=>{
                                     if (res.confirm){

+ 1 - 1
myPages/aboutOur/index.vue

@@ -15,7 +15,7 @@ export default {
 				{title:'会员协议',to:'/myPages/TermsOfService/index?name='+'会员协议'+'&type=' + 1},
 				{title:'储值协议',to:'/myPages/TermsOfService/index?name='+'储值协议'+'&type=' + 8},
 				{title:'隐私条款',to:'/myPages/TermsOfService/index?name='+'隐私条款'+'&type=' + 3},
-				{title:'储值使用说明',to:'/myPages/TermsOfService/index?name='+'储值使用说明'+'&type=' + 9},
+				// {title:'储值使用说明',to:'/myPages/TermsOfService/index?name='+'储值使用说明'+'&type=' + 9},
 				// {title:'常见问题',to:'/myPages/TermsOfService/index?name='+'常见问题'+'&type=' + 5}
 			],
 		};

+ 37 - 22
myPages/recharge/index.vue

@@ -126,28 +126,34 @@
 				</view>
 
 				<!-- 使用说明 -->
-				<view class="h-desc">
-					<view class="title">
-						<text>使用说明</text>
-					</view>
-					<view class="h-content">
-						<view class="h-v-text">
-							<text>1、 这上面的夜的天空,奇怪而高,我生平。</text>
-						</view>
-						<view class="h-v-text">
-							<text>2、 这上面的夜的天空,奇怪而高,我生平。</text>
-						</view>
-						<view class="h-v-text">
-							<text>3、 这上面的夜的天空,奇怪而高,我生平。</text>
-						</view>
-						<view class="h-v-text">
-							<text>4、 这上面的夜的天空,奇怪而高,我生平。</text>
-						</view>
-						<view class="h-v-text">
-							<text>5、 这上面的夜的天空,奇怪而高,我生平。</text>
-						</view>
-					</view>
+
+				<view>
+					<rich-text v-html="aboutContent">
+					</rich-text>
 				</view>
+<!--				<view class="h-desc">-->
+<!--					<view class="title">-->
+<!--						<text>储值使用说明</text>-->
+<!--					</view>-->
+<!--					<view class="h-content">-->
+<!--						<view class="h-v-text">-->
+<!--							<text>1、 这上面的夜的天空,奇怪而高,我生平。</text>-->
+<!--						</view>-->
+<!--						<view class="h-v-text">-->
+<!--							<text>2、 这上面的夜的天空,奇怪而高,我生平。</text>-->
+<!--						</view>-->
+<!--						<view class="h-v-text">-->
+<!--							<text>3、 这上面的夜的天空,奇怪而高,我生平。</text>-->
+<!--						</view>-->
+<!--						<view class="h-v-text">-->
+<!--							<text>4、 这上面的夜的天空,奇怪而高,我生平。</text>-->
+<!--						</view>-->
+<!--						<view class="h-v-text">-->
+<!--							<text>5、 这上面的夜的天空,奇怪而高,我生平。</text>-->
+<!--						</view>-->
+<!--					-->
+<!--					</view>-->
+<!--				</view>-->
 			</view>
 		</view>
 
@@ -158,6 +164,7 @@
 	export default {
 		data() {
 			return {
+				aboutContent:'',
 				show: false,
 				currentTab: '', // 当前选中的 Tab
 				isSelected: true,
@@ -179,6 +186,7 @@
 			};
 		},
 		onLoad() {
+			this.AboutByType()
 		},
 		onShow() {
 			// 获取充值面额
@@ -188,6 +196,13 @@
 		},
 		methods: {
 
+			AboutByType(type) {
+				this.$api.AboutByType({type:9}).then(res => {
+					this.aboutContent = res.data.data.aboutContent
+					console.log(res,'333333333333')
+				})
+			},
+
 			// 获取充值面额
 			getRechargeList(){
 				console.log('+++++++++666666666666666666+++++++++++++++++++')
@@ -524,7 +539,7 @@
 				// color:green;
 			}
 			.h-btn{
-				color:green;
+				color:red;
 			}
 		}
 

+ 11 - 15
myPages/setting/setting-telphone.vue

@@ -54,14 +54,14 @@
             </template>
 
           </u-form-item>
-          <view style="font-size: 26rpx">
-            请输入您在娇骄儿的会员手机号,如需要找回账号请点击
-            <navigator url="/loginPages/login/retrieve-account">
-              <text style="color: #007aff">找回账号</text>
-              。
-            </navigator>
+<!--          <view style="font-size: 26rpx">-->
+<!--            请输入您在娇骄儿的会员手机号,如需要找回账号请点击-->
+<!--            <navigator url="/loginPages/login/retrieve-account">-->
+<!--              <text style="color: #007aff">找回账号</text>-->
+<!---->
+<!--            </navigator>-->
 
-          </view>
+<!--          </view>-->
 
         </u--form>
       </view>
@@ -151,16 +151,12 @@ export default {
         })
         this.getUserInfo()
         setTimeout(function () {
-          // 绑定成功,返回我的页面
-          uni.switchTab({
-            url: '/pages/my/index',
+          // 绑定成功,返回上一页
+          uni.navigateBack({
+            delta: 1,
           });
         }, 2000); // 延迟2秒执行
-      }).catch(() => {
-        uni.showToast({
-          title: "操作失败"
-        })
-      });
+      })
     },
     // 去绑定账号密码页面
     setPhone() {

+ 25 - 9
myPages/userInfo/index.vue

@@ -50,15 +50,25 @@
 				</picker>
 			</view>
 
-			<view class="flex-row justify-between bordBot" >
-				<view class="key flex-col justify-center ">
-					<text>实名认证</text>
-				</view>
-				<view class="flex-row justify-end groupItemContent" @click="gotoRealNameAuth">
-					<text>{{userInfo.isAttestation? '已认证' : '未实名认证,去认证' }}</text>
-					<u-icon name="arrow-right" color="#666" size="18"></u-icon>
+				<view class="flex-row justify-between bordBot" >
+					<view class="key flex-col justify-center ">
+						<text>手机号</text>
+					</view>
+					<view class="flex-row justify-end groupItemContent" @click="settingTelphone">
+						<text>{{userInfo.phone? userInfo.phone : '绑定手机号' }}</text>
+						<u-icon name="arrow-right" color="#666" size="18"></u-icon>
+					</view>
 				</view>
-			</view>
+
+<!--			<view class="flex-row justify-between bordBot" >-->
+<!--				<view class="key flex-col justify-center ">-->
+<!--					<text>实名认证</text>-->
+<!--				</view>-->
+<!--				<view class="flex-row justify-end groupItemContent" @click="gotoRealNameAuth">-->
+<!--					<text>{{userInfo.isAttestation? '已认证' : '未实名认证,去认证' }}</text>-->
+<!--					<u-icon name="arrow-right" color="#666" size="18"></u-icon>-->
+<!--				</view>-->
+<!--			</view>-->
 
 			<button class="updateButton"  formType="submit">
 				<text>保存</text>
@@ -85,7 +95,7 @@ export default {
 	},
 	mounted() {
 	},
-	onLoad() {
+	onShow() {
 
 		// 用户信息
 		this.userInfo = uni.getStorageSync('userInfo')
@@ -98,6 +108,12 @@ export default {
 	},
 	methods: {
 
+		settingTelphone(){
+			uni.navigateTo({
+				url:'/myPages/setting/setting-telphone'
+			})
+		},
+
 		inputValue(e){
 			console.log('+++++++++++++inputValue+++++++++++',e)
 			this.userInfo.ncikName = e.detail.value.nickname

+ 10 - 0
orderPages/bookService/index.rpx.scss

@@ -181,3 +181,13 @@
   text-align: center;
   margin-top: 80rpx;
 }
+.text_5{
+  overflow-wrap: break-word;
+  font-size: 24rpx;
+  color: red;
+  font-weight: normal;
+  text-align: left;
+  white-space: nowrap;
+  line-height: 44rpx;
+  margin-top: 16rpx;
+}

+ 29 - 1
orderPages/bookService/index.vue

@@ -9,8 +9,8 @@
                     <text>{{serviceObject.nickName || '请选择对象' }}</text>
                     <u-icon name="arrow-right" color="#666" size="18"></u-icon>
                 </view>
+                <text class="text_5" >服务对象指接受娇骄儿理发服务的儿童</text>
             </view>
-
             <view class="flex-col justify-around groupItem">
                 <view class="groupItemKey">
                     <text>服务类别</text>
@@ -215,6 +215,19 @@ export default {
         // this.storeAllServiceList()
         this.category()
         this.selectDate()
+        if (!this.userInfo.phone){
+            uni.showModal({
+                title:'温馨提示',
+                content:'请绑定手机号,以便为你提供服务',
+                success:res=>{
+                    if (res.confirm){
+                        uni.navigateTo({
+                            url: '/myPages/setting/setting-telphone',
+                        })
+                    }
+                }
+            })
+        }
     },
 
     onShow(){
@@ -237,6 +250,21 @@ export default {
         //提交订单
         commitOrder(){
 
+            if (!this.userInfo.phone){
+                uni.showModal({
+                    title:'温馨提示',
+                    content:'请绑定手机号,以便为你提供服务',
+                    success:res=>{
+                        if (res.confirm){
+                            uni.navigateTo({
+                                url: '/myPages/setting/setting-telphone',
+                            })
+                        }
+                    }
+                })
+                return;
+            }
+
             if(!this.serviceObject){
                 uni.$u.toast('请选择服务对象')
                 return

+ 30 - 0
orderPages/storeService/index.vue

@@ -42,6 +42,7 @@ export default {
   },
   data() {
     return {
+      userInfo:{},
       serviceObject: {},
       store: {},
       storeServiceList: [],
@@ -52,6 +53,20 @@ export default {
   },
   onLoad() {
     // this.listServiceObject()
+    this.userInfo = uni.getStorageSync('userInfo')
+    if (!this.userInfo.phone){
+      uni.showModal({
+        title:'温馨提示',
+        content:'请绑定手机号,以便为你提供服务',
+        success:res=>{
+          if (res.confirm){
+            uni.navigateTo({
+              url: '/myPages/setting/setting-telphone',
+            })
+          }
+        }
+      })
+    }
   },
   onShow() {
     // 服务对象
@@ -106,6 +121,21 @@ export default {
 
     commonGeneralOrder() {
 
+      if (!this.userInfo.phone){
+        uni.showModal({
+          title:'温馨提示',
+          content:'请绑定手机号,以便为你提供服务',
+          success:res=>{
+            if (res.confirm){
+              uni.navigateTo({
+                url: '/myPages/setting/setting-telphone',
+              })
+            }
+          }
+        })
+        return;
+      }
+
       if(!this.serviceObject){
         uni.$u.toast('请选择服务对象')
         return

+ 8 - 10
pages/login/login.vue

@@ -48,11 +48,11 @@
 				<!--        <text style="color: red;font-size: 22rpx  ">*此账号密码可进行交易使用,请保存好您的隐私。</text>-->
 				<view class="agreement-content">
 					<u-icon v-if="choose" name="checkmark-circle-fill" color="#2979ff" size="20" @click="changeChoose"></u-icon>
-					<u-icon v-else name="/static/order/ud9.png" color="green" size="20" @click="changeChoose"></u-icon>
+					<u-icon v-else name="/static/order/ud9.png" color="#FFE05C" size="20" @click="changeChoose"></u-icon>
 					<view class="agreement">
-						<text>允许我们在必要的场景下合理使用你的相关信息,请阅读并同意协议</text>
-						<text @click="gotoAgreement('1','会员协议')" class="text-color">《会员协议》、</text>
-						<text @click="gotoAgreement('2','服务对象协议')" class="text-color">《服务对象协议》、</text>
+						<text>允许我们在必要的场景下合理使用你的相关信息,请阅读并同意</text>
+						<text @click="gotoAgreement('1','会员须知')" class="text-color">《会员须知》、</text>
+						<text @click="gotoAgreement('3','隐私政策')" class="text-color">《隐私政策》</text>
 					</view>
 				</view>
 			</view>
@@ -142,10 +142,8 @@
 			wechatCodeLogin() {
 				let that = this;
 				if (!this.choose){
-					uni.showToast({
-						icon:'error',
-						title: '请勾选相关协议'
-					})
+					uni.$u.toast('请阅读条款并勾选注册')
+					return
 				}
 				wx.login({
 					success(re) {
@@ -157,7 +155,7 @@
 							uni.removeStorageSync('parent_member_id');
 							if (!res.data.data.phoneIsBind){
 								uni.showModal({
-									title:'绑定手机号',
+									title:'温馨提示',
 									content:'请绑定手机号,以便为你提供服务',
 									success:res=>{
 										if (res.confirm){
@@ -289,7 +287,7 @@
 				font-size: 23rpx;
 
 				.text-color {
-					color: blue;
+					color: red;
 				}
 			}
 		}

+ 0 - 1
pages/my/index.rpx.css

@@ -2,7 +2,6 @@
     background: #F7F7F7;
     position: relative;
     width: 750rpx;
-    height: 1600rpx;
 }
 
 .tabBarLineHeight{

+ 11 - 9
pages/my/index.vue

@@ -1,9 +1,8 @@
 <template>
-	<view class="page" >
+	<view class="page" :style="{'height':height}">
 		<view class="backImage">
 			<image class="backImage" src="/static/me/u655.png"></image>
 		</view>
-
 		<view class="content">
 
 				<view class="userInfo flex-row justify-between  ">
@@ -117,7 +116,7 @@ export default {
 				// {thumb:'/static/me/u1833.png',title:'新老系统切换',rightText:'',to:'/myPages/systemSwitch/index'},
 				{thumb:'/static/me/u826.png',title:'储值服务',rightText:'',to:'/myPages/recharge/index'},
 				{thumb:'/static/me/u701.png',title:'交易记录',rightText:'',to:'/myPages/transactionRecord/index'},
-        {thumb:'/static/me/关于我们.png',title:'关于我们',rightText:'',to:'/myPages/aboutOur/index'}
+        		{thumb:'/static/me/u11.png',title:'关于我们',rightText:'',to:'/myPages/aboutOur/index'}
 			],
 			group2:[
 
@@ -136,6 +135,9 @@ export default {
 	// 分享到用户
 	onShareAppMessage(OBJECT) { },
 	onLoad() {
+
+
+
 		uni.hideTabBar({
 			animation:false
 		})
@@ -144,12 +146,12 @@ export default {
 	},
 
 	onShow(){
-		this.userInfo = uni.getStorageSync('userInfo')
-		if (this.userInfo.isAttestation){
-			this.group1[0].rightText = '已认证'
-		}else {
-			this.group1[0].rightText = '未实名认证,去认证'
-		}
+		// this.userInfo = uni.getStorageSync('userInfo')
+		// if (this.userInfo.isAttestation){
+		// 	this.group1[0].rightText = '已认证'
+		// }else {
+		// 	this.group1[0].rightText = '未实名认证,去认证'
+		// }
 
 
 		this.getUserInfo()

BIN
static/me/u11.png