|
@@ -3,34 +3,18 @@
|
|
|
<div v-if="showBindArea">
|
|
<div v-if="showBindArea">
|
|
|
<form @submit="formSubmit">
|
|
<form @submit="formSubmit">
|
|
|
<div class="module-com input-line-wrap">
|
|
<div class="module-com input-line-wrap">
|
|
|
- <div
|
|
|
|
|
- class="prompt-text"
|
|
|
|
|
- style="padding-top:20upx;margin-bottom:20upx;font-size:30upx;"
|
|
|
|
|
- >请按以下操作完成绑定:</div>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <div class="prompt-text" style="padding-top:20upx;margin-bottom:20upx;font-size:30upx;" >请按以下操作完成绑定:</div>
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<div class="tui-title required" style="width:120upx;">手机号</div>
|
|
<div class="tui-title required" style="width:120upx;">手机号</div>
|
|
|
<view style="width:400upx;">{{form.mobile}}</view>
|
|
<view style="width:400upx;">{{form.mobile}}</view>
|
|
|
- <button
|
|
|
|
|
- class="admin-button-com blue mini-btn"
|
|
|
|
|
- open-type="getPhoneNumber"
|
|
|
|
|
- @getphonenumber="getWxMobile"
|
|
|
|
|
- >帮我填</button>
|
|
|
|
|
|
|
+ <button class="admin-button-com blue mini-btn" open-type="getPhoneNumber" @getphonenumber="getWxMobile" >帮我填</button>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<div class="tui-title required" style="width:120upx;">昵称</div>
|
|
<div class="tui-title required" style="width:120upx;">昵称</div>
|
|
|
<view style="width:400upx;">{{form.name}}</view>
|
|
<view style="width:400upx;">{{form.name}}</view>
|
|
|
- <button
|
|
|
|
|
- class="admin-button-com blue mini-btn"
|
|
|
|
|
- @click="getWxAvatar"
|
|
|
|
|
- >帮我填</button>
|
|
|
|
|
|
|
+ <button class="admin-button-com blue mini-btn" @click="getWxAvatar" >帮我填</button>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
-
|
|
|
|
|
- <div
|
|
|
|
|
- class="prompt-text"
|
|
|
|
|
- style="margin-top:20upx;margin-bottom:20upx;font-size:30upx;"
|
|
|
|
|
- >关注公众号,第一时间接收门店动态:</div>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <div class="prompt-text" style="margin-top:20upx;margin-bottom:20upx;font-size:30upx;" >关注公众号,第一时间接收门店动态:</div>
|
|
|
<tui-list-cell>
|
|
<tui-list-cell>
|
|
|
<block>
|
|
<block>
|
|
|
<official-account></official-account>
|
|
<official-account></official-account>
|
|
@@ -44,25 +28,15 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div v-if="showSuccessArea">
|
|
<div v-if="showSuccessArea">
|
|
|
<view style="text-align:center;padding-top:50upx;">
|
|
<view style="text-align:center;padding-top:50upx;">
|
|
|
- <img
|
|
|
|
|
- :src="`${constant.imgUrl}/retail/callback/success.png`"
|
|
|
|
|
- alt
|
|
|
|
|
- mode="widthFix"
|
|
|
|
|
- style="width:30vh;margin:0 auto;"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <img :src="`${constant.imgUrl}/retail/callback/success.png`" alt mode="widthFix" style="width:30vh;margin:0 auto;" />
|
|
|
</view>
|
|
</view>
|
|
|
<view style="text-align:center;font-size:40upx;margin-top:30upx;">绑定成功</view>
|
|
<view style="text-align:center;font-size:40upx;margin-top:30upx;">绑定成功</view>
|
|
|
<view style="text-align:center;margin-top:5vh">
|
|
<view style="text-align:center;margin-top:5vh">
|
|
|
- <button
|
|
|
|
|
- class="admin-button-com blue big"
|
|
|
|
|
- style="width:260upx;"
|
|
|
|
|
- @click="redirectToCenter"
|
|
|
|
|
- >管理中心</button>
|
|
|
|
|
|
|
+ <button class="admin-button-com blue big" style="width:260upx;" @click="redirectToCenter" >管理中心</button>
|
|
|
</view>
|
|
</view>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
-
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
@@ -165,15 +139,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 获取微信信息
|
|
// 获取微信信息
|
|
|
getWxAvatar() {
|
|
getWxAvatar() {
|
|
|
- // uni.getUserInfo({
|
|
|
|
|
- // provider: "weixin",
|
|
|
|
|
- // success: res => {
|
|
|
|
|
-
|
|
|
|
|
- // },
|
|
|
|
|
- // fail: () => {
|
|
|
|
|
- // // this.loading = false
|
|
|
|
|
- // }
|
|
|
|
|
- // });
|
|
|
|
|
uni.getUserProfile({
|
|
uni.getUserProfile({
|
|
|
desc:'登录',
|
|
desc:'登录',
|
|
|
success:(res)=>{
|
|
success:(res)=>{
|
|
@@ -186,10 +151,8 @@ export default {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
);
|
|
);
|
|
|
- },
|
|
|
|
|
- fail:(res)=>{
|
|
|
|
|
}
|
|
}
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
redirectToCenter() {
|
|
redirectToCenter() {
|
|
|
this.$store.commit("setLoginInfo", {});
|
|
this.$store.commit("setLoginInfo", {});
|
|
@@ -202,4 +165,4 @@ export default {
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|