| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- <template>
- <view>
- <u-popup :custom-style="popupStyle"
- close-icon-size="50"
- :mask-close-able="false"
- @close="close" class="auth-point" :closeable="true" close-icon-color="#fff"
- close-icon="close-circle" v-model="show" mode="center" width="80%" height="680rpx" border-radius="16">
- <view class="">
- <image class="auth-bg" mode="aspectFill" src="../../static/poster/bg_shouyetc.png">
- <view class="auth-msg" style="display: flex;flex-direction: column;">
- <view class="margin-bottom-20 flex justify-start"
- style="font-size: 26rpx;color: #353535;font-family: PingFang-SC-Medium;line-height: 45rpx;"
- v-for="(item,index) in vuex_active_setting.helpExplainList" :key="index">
- <view class="center">
- <u-icon name="/static/icon/titles.png" size="30"></u-icon>
- </view>
- <view class="center margin-left-10">
- <text>{{item.helpExplain}}</text>
- </view>
- </view>
- </view>
- <u-button @click="toAuth" :custom-style="customStyle" shape="circle">去授权</u-button>
- </image>
- </view>
- </u-popup>
- </view>
- </template>
- <script>
- export default {
- name: "pointAuth",
- data() {
- return {
- show: false,
- popupStyle: {
- 'u-mode-center-box': 'red'
- },
- authUrl: '',
- customStyle: {
- color: 'white',
- background: "#E72226",
- width: '400rpx',
- margin: '25rpx auto'
- }
- };
- },
- methods: {
- showAuth(url) {
- this.authUrl = url;
- this.show = true;
- },
- hide() {
- this.show = false;
- },
- close() {
- console.log("close");
- this.$emit('close')
- },
- toAuth() {
- let params = {
- url: encodeURIComponent(this.authUrl),
- title: '移动积分授权'
- }
- this.$jump('/pages/webview/webview' + this.$u.queryParams(params));
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .auth-bg {
- width: 100%;
- height: 266rpx;
- }
- .auth-msg {
- padding: 40rpx 40rpx 20rpx 40rpx;
- display: flex;
- align-items: center;
- justify-content: left;
- }
- </style>
- <!-- <template>
- <view>
- <u-popup :custom-style="popupStyle" class="auth-point" v-model="show" mode="center" width="80%" border-radius="18" >
- <image class="auth-bg" mode="aspectFill" src="../../static/poster/bg_shouyetc.png">
- <view class="auth-msg">
- <view class="info-item" v-for="(item,index) in vuex_active_setting.helpExplainList" :key="index">
- {{item.helpExplain}}
- </view>
- </view>
- <u-button @click="toAuth" :custom-style="customStyle" shape="circle" >去授权</u-button>
- </image>
- </u-popup>
- </view>
- </template>
- <script>
- export default {
- name:"pointAuth",
- data() {
- return {
- show: true,
- popupStyle: {
- 'u-mode-center-box': 'red'
- },
- authUrl: '',
- customStyle: {
- color: 'white',
- background: "#E72226",
- width: '400rpx',
- margin: '25rpx auto'
- }
- };
- },
- methods: {
- showAuth(url){
- this.authUrl = url;
- this.show = true;
- },
- hide(){
- this.show = false;
- },
- close(){
- this.$emit('close')
- },
- toAuth(){
- let params={
- url:encodeURIComponent(this.authUrl),
- title:'移动积分授权'
- }
- this.$jump('/pages/webview/webview'+this.$u.queryParams(params));
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .auth-bg{
- width: 100%;
- height: 266rpx;
- }
- .auth-msg{
- padding: 40rpx 20rpx 20rpx 20rpx;
- .info-item{
- font-size: 26rpx;
- color: #353535;
- position: relative;
- padding: 10rpx 30rpx 10rpx 30rpx;
- margin-left: 30rpx;
- }
- .info-item::before{
- content: "";
- position: absolute;
- left: -20rpx;
- top: 10rpx;
- width: 25rpx;
- height: 25rpx;
- background: url(../../static/icon/item-dot.png) no-repeat center/contain;
- }
- }
- </style> -->
|