addoperator.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. <template>
  2. <view class="container login">
  3. <view class="login-main">
  4. <text class="logo-titl">本页面协销人员不用填写!</text>
  5. <text class="logo-text">点击右上方<text class="sp">···</text>,选择“发送给朋友”,把该页面发送给该机构人员填写,填写好之后对方就能成为该机构的运营人员</text>
  6. </view>
  7. <view class="login-form clearfix">
  8. <view class="login-input">
  9. <input type="text"
  10. v-model="bindLinkName"
  11. maxlength="30"
  12. class="input"
  13. disabled="true"
  14. placeholder="请输入姓名"
  15. />
  16. </view>
  17. </view>
  18. <view class="login-form clearfix">
  19. <view class="login-input">
  20. <input type="number"
  21. v-model="bindLinkPhone"
  22. maxlength="11"
  23. class="input"
  24. disabled="true"
  25. placeholder="请输入手机号"
  26. />
  27. </view>
  28. </view>
  29. <view class="login-form clearfix">
  30. <view class="login-input code">
  31. <input type="text"
  32. v-model="imageCode"
  33. maxlength="4"
  34. class="input"
  35. disabled="true"
  36. placeholder="请输入右侧图形验证码"
  37. />
  38. </view>
  39. <view class="login-input img-btn">
  40. <view class="vscodeimg">
  41. <image :src="imageCodeUrl" mode=""></image>
  42. </view>
  43. <view class="vscod-refresh">
  44. <text class="iconfont"></text>
  45. <text class="ref-text"></text>
  46. </view>
  47. </view>
  48. </view>
  49. <view class="login-form clearfix">
  50. <view class="login-input code">
  51. <input type="number"
  52. v-model="mobildeCode"
  53. maxlength="6"
  54. class="input"
  55. disabled="true"
  56. placeholder="请输入短信验证码"
  57. />
  58. </view>
  59. <view class="login-input btn disabled">
  60. <button type="button"
  61. disabled="true"
  62. class="input">
  63. {{ mobileCodeText }}
  64. </button>
  65. </view>
  66. </view>
  67. <view class="login-form clearfix">
  68. <view class="login-btn">确定</view>
  69. </view>
  70. </view>
  71. </template>
  72. <script>
  73. import { mapState,mapMutations } from 'vuex'
  74. import authorize from '@/common/config/authorize.js'
  75. import { bindingWechat } from "@/api/use.js"
  76. import { getbindWechatCode } from "@/api/utils.js"
  77. export default{
  78. data() {
  79. return{
  80. userID:'',
  81. imageCodeUrl:'',
  82. mobileCodeText:'获取验证码'
  83. }
  84. },
  85. onLoad(option) {
  86. this.getVerificationCode()
  87. },
  88. methods:{
  89. getVerificationCode(){//图形验证
  90. this.PublicService.GetImgVerifyCode().then(res => {
  91. this.imageCodeUrl = res.data.baseImage
  92. })
  93. },
  94. },
  95. onShareAppMessage(res){//分享转发
  96. if (res.from === 'button') { // 来自页面内转发按钮
  97. }
  98. return {
  99. title: '快来成为机构运营人员吧~',
  100. path: `pages/login/bindOperator?userID=${this.userID}`,
  101. imageUrl:'https://admin-b.caimei365.com/userfiles/1/images/photo/2020/04/%E5%BF%AB%E6%9D%A5%E6%88%90%E4%B8%BA%E6%9C%BA%E6%9E%84%E8%BF%90%E8%90%A5%E4%BA%BA%E5%91%98%403x.png'
  102. }
  103. },
  104. onShow() {
  105. this.$api.getComStorage('orderUserInfo').then((resolve) =>{
  106. this.userID = resolve.userID
  107. })
  108. }
  109. }
  110. </script>
  111. <style lang="scss">
  112. .login{
  113. width: 100%;
  114. height: auto;
  115. border-top: 1px solid #F7F7F7;
  116. .model-warp.none{
  117. display: none;
  118. }
  119. .model-warp.show{
  120. display: block;
  121. }
  122. .login-main{
  123. width: 702rpx;
  124. background: rgba(225, 86, 22, 0.1);
  125. display: flex;
  126. flex-direction: column;
  127. height: 142rpx;
  128. padding: 20rpx 24rpx;
  129. margin: 24rpx 0 118rpx 0;
  130. .logo-titl{
  131. font-size: 26rpx;
  132. line-height: 34rpx;
  133. color:$text-color;
  134. margin-bottom: 40rpx;
  135. font-weight: bold;
  136. }
  137. .logo-text{
  138. font-size: 24rpx;
  139. line-height: 34rpx;
  140. color: $color-system;
  141. .sp{
  142. color: #000000;
  143. font-weight: bold;
  144. }
  145. }
  146. }
  147. .login-form{
  148. width: 702rpx;
  149. height: auto;
  150. padding: 0 24rpx;
  151. .login-input{
  152. width: 654rpx;
  153. height: 40rpx;
  154. padding: 24rpx;
  155. margin-bottom: 20rpx;
  156. background: #F7F7F7;
  157. border-radius: 14rpx;
  158. display: flex;
  159. flex-direction: column;
  160. align-items: center;
  161. &.code{
  162. width: 370rpx;
  163. float: left;
  164. margin-right: 20rpx;
  165. }
  166. &.btn{
  167. width: 258rpx;
  168. height: 88rpx;
  169. padding: 0;
  170. float: left;
  171. background: $btn-confirm;
  172. .input{
  173. width: 258rpx;
  174. height: 88rpx;
  175. line-height: 88rpx;
  176. padding: 0;
  177. border-radius: 14rpx;
  178. color: #FFFFFF;
  179. background: $btn-confirm;
  180. }
  181. &.disabled{
  182. background: #F7F7F7;
  183. .input{
  184. background: #F7F7F7;
  185. color: #999999;
  186. }
  187. }
  188. }
  189. &.img-btn{
  190. width: 250rpx;
  191. height: 88rpx;
  192. padding: 0;
  193. float: left;
  194. background: #FFFFFF;
  195. display: block;
  196. .vscodeimg{
  197. width: 180rpx;
  198. height: 88rpx;
  199. float: left;
  200. display: flex;
  201. flex-direction: column;
  202. align-items: center;
  203. border-radius: 14rpx;
  204. image{
  205. width: 180rpx;
  206. height: 88rpx;
  207. border-radius: 14rpx;
  208. }
  209. }
  210. .vscod-refresh{
  211. width: 70rpx;
  212. float: right;
  213. display: flex;
  214. flex-direction: column;
  215. align-items: center;
  216. .icon-shuaxin{
  217. font-size: 48rpx;
  218. color: #333333;
  219. }
  220. .ref-text{
  221. font-size: 24rpx;
  222. color: #333333;
  223. }
  224. }
  225. }
  226. .input{
  227. width: 100%;
  228. height: 100%;
  229. background: #F7F7F7;
  230. font-size: $font-size-28;
  231. line-height: 40rpx;
  232. color: #333333;
  233. border-radius: 14rpx;
  234. }
  235. }
  236. }
  237. .login-btn{
  238. width: 702rpx;
  239. height: 88rpx;
  240. border-radius: 44rpx;
  241. font-size: $font-size-28;
  242. line-height: 88rpx;
  243. color: #FFFFFF;
  244. margin: 0 auto;
  245. text-align: center;
  246. background: $btn-confirm;
  247. margin-top: 100rpx;
  248. }
  249. .model-authorization{
  250. width: 100%;
  251. height: 100%;
  252. position: fixed;
  253. top: 0;
  254. left: 0;
  255. z-index: 999;
  256. .authorization{
  257. width: 518rpx;
  258. height: 320rpx;
  259. position: absolute;
  260. background: rgba(255,255,255,.7);
  261. left: 0;
  262. right: 0;
  263. bottom: 0;
  264. top: 0;
  265. margin: auto;
  266. .to-btn{
  267. position: absolute;
  268. top: 0;
  269. left: 0;
  270. right: 0;
  271. bottom: 0;
  272. margin: auto;
  273. width: 70%;
  274. height: 88rpx;
  275. font-size: $font-size-28;
  276. line-height: 88rpx;
  277. color: #FFFFFF;
  278. text-align: center;
  279. border-radius: 44rpx;
  280. }
  281. }
  282. }
  283. }
  284. </style>