|
@@ -128,20 +128,29 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 普通弹窗 公众号-->
|
|
|
- <uni-popup ref="popup4" class="share" background-color="#fff" @change="change">
|
|
|
+ <uni-popup ref="popup4" class="share" background-color="#fff" @change="change" :maskClick="false">
|
|
|
<view class="popup-content" :class="{ 'popup-height': type === 'left' || type === 'right' }">
|
|
|
<view class="sharepage">
|
|
|
<view class="projecttext1">
|
|
|
- <image src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/project15.png"
|
|
|
- style="width: 80rpx; height: 80rpx;" mode=""></image>
|
|
|
- <span>YoungGee</span>
|
|
|
- </view>
|
|
|
- <view class="" style="margin-top: 5%;">
|
|
|
- <p style='color: #333333;font-size: 28rpx;text-align: center;'>扫码联系</p>
|
|
|
+ <image src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/younggee_logo.png"
|
|
|
+ style="width: 250rpx; height: 80rpx;" mode=""></image>
|
|
|
+ <!-- <span>YoungGee</span> -->
|
|
|
</view>
|
|
|
<view class="sharemap">
|
|
|
- <image src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/kefu.png"
|
|
|
- style="width: 400rpx;height: 400rpx;" mode=""></image>
|
|
|
+ <image :src="kefuUrl" style="width: 400rpx;height: 400rpx;" mode=""></image>
|
|
|
+ </view>
|
|
|
+ <view style="margin: 30rpx 0;">
|
|
|
+ <button class="butmin1" size="mini" @tap="saveImage">保存二维码</button>
|
|
|
+ </view>
|
|
|
+ <view class="sharetxt">
|
|
|
+ <text>
|
|
|
+ 使用样叽的过程中,有任何疑问,\n
|
|
|
+ 请添加上方微信。\n
|
|
|
+ 我们保证及时全力为您解决!
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+ <view style="margin: 30rpx 0;">
|
|
|
+ <button class="butmin" size="mini" @tap="closepop">知道了</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -162,6 +171,11 @@
|
|
|
<script>
|
|
|
import aTip from "@/components/mys-tip_1.0.01/a_tip/aTip";
|
|
|
import request from '@/components/request.js';
|
|
|
+ import {
|
|
|
+ saveImageToPhotosAlbum,
|
|
|
+ showToast,
|
|
|
+ downloadFile
|
|
|
+ } from '@/uni_modules/sakura-canvas/js_sdk/util'
|
|
|
/* 默认首页路径 */
|
|
|
const homePath = "/pages/pupu/pupudao";
|
|
|
/* 默认首页图标路径 */
|
|
@@ -237,6 +251,7 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ kefuUrl: "https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/kefu.jpeg",
|
|
|
navH: getApp().globalData.navHeight,
|
|
|
token: '',
|
|
|
per: 0,
|
|
@@ -262,7 +277,7 @@
|
|
|
name: '/pages/tasksquare/guanwang'
|
|
|
}
|
|
|
],
|
|
|
-
|
|
|
+
|
|
|
//弹窗
|
|
|
type: 'center',
|
|
|
formData: {
|
|
@@ -605,7 +620,7 @@
|
|
|
url: item.name
|
|
|
});
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
//弹出层
|
|
|
change(e) {
|
|
|
console.log('当前模式:' + e.type + ',状态:' + e.show);
|
|
@@ -649,6 +664,39 @@
|
|
|
this.$refs.popup4.open(type)
|
|
|
// this.$refs.popup1.close()
|
|
|
},
|
|
|
+ // 保存图片
|
|
|
+ async saveImage() {
|
|
|
+ // let res = await saveImageToPhotosAlbum(this.kefuUrl)
|
|
|
+ // if (!res.success) {
|
|
|
+ // console.log(res)
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // showToast('保存成功')
|
|
|
+ wx.downloadFile({
|
|
|
+ url: this.kefuUrl,
|
|
|
+ success: function(res) {
|
|
|
+ wx.saveImageToPhotosAlbum({
|
|
|
+ filePath: res.tempFilePath,
|
|
|
+ success: function(data) {
|
|
|
+ wx.showToast({
|
|
|
+ title: "保存成功",
|
|
|
+ icon: "success",
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ },
|
|
|
+ fail: function(err) {
|
|
|
+ console.log(err);
|
|
|
+ },
|
|
|
+ complete(res) {
|
|
|
+ console.log(res);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ closepop() {
|
|
|
+ this.$refs.popup4.close()
|
|
|
+ },
|
|
|
xieyi() {
|
|
|
console.log('进入联系我们')
|
|
|
},
|
|
@@ -664,21 +712,25 @@
|
|
|
pages === 1 ? (this.isHome = true) : (this.isHome = false);
|
|
|
}
|
|
|
// 开启渐变 强制fixed
|
|
|
- this.navBarTop = uni.getSystemInfoSync().statusBarHeight + "px";
|
|
|
+ this.navBarTop = uni.getSystemInfoSync().statusBarHeight +
|
|
|
+ "px";
|
|
|
if (!this.mysNavConfig.opacity) {
|
|
|
this.opacity = 1;
|
|
|
- !this.mysNavConfig.isOpacity ? (this.opacity = 1) : ((this.mysNavConfig.navFixed = true), (this
|
|
|
+ !this.mysNavConfig.isOpacity ? (this.opacity = 1) : ((this
|
|
|
+ .mysNavConfig.navFixed = true), (this
|
|
|
.opacity = 0));
|
|
|
} else {
|
|
|
this.opacity = this.mysNavConfig.opacity;
|
|
|
- !this.mysNavConfig.isOpacity ? "" : ((this.mysNavConfig.navFixed = true), (this.opacity = 0));
|
|
|
+ !this.mysNavConfig.isOpacity ? "" : ((this.mysNavConfig
|
|
|
+ .navFixed = true), (this.opacity = 0));
|
|
|
}
|
|
|
|
|
|
// #ifdef MP
|
|
|
this.initMP();
|
|
|
// #endif
|
|
|
// #ifdef APP-PLUS-NVUE
|
|
|
- this.navBarHeight = 44 + uni.getSystemInfoSync().statusBarHeight + "px";
|
|
|
+ this.navBarHeight = 44 + uni.getSystemInfoSync()
|
|
|
+ .statusBarHeight + "px";
|
|
|
// #endif
|
|
|
},
|
|
|
/* 小程序初始化位置 */
|
|
@@ -696,8 +748,10 @@
|
|
|
this.inputHeight = rectHeight - 3 + "px";
|
|
|
this.navBarTop = rect.top + "px";
|
|
|
this.navBarLeft = gS.screenWidth - rect.right + "px";
|
|
|
- this.navBarRight = gS.screenWidth - rect.right + rect.width + "px";
|
|
|
- this.navBarHeight = gS.statusBarHeight + rectHeight + (rect.top - gS.statusBarHeight) * 2 + "px";
|
|
|
+ this.navBarRight = gS.screenWidth - rect.right + rect.width +
|
|
|
+ "px";
|
|
|
+ this.navBarHeight = gS.statusBarHeight + rectHeight + (rect
|
|
|
+ .top - gS.statusBarHeight) * 2 + "px";
|
|
|
},
|
|
|
/* 点击左侧 */
|
|
|
onLeftClick() {
|
|
@@ -713,11 +767,13 @@
|
|
|
console.log(item.project_id)
|
|
|
if (item.project_type === 1) {
|
|
|
uni.navigateTo({
|
|
|
- url: '/pages/tasksquare/taskdetail?id=' + item.project_id
|
|
|
+ url: '/pages/tasksquare/taskdetail?id=' + item
|
|
|
+ .project_id
|
|
|
});
|
|
|
} else {
|
|
|
uni.navigateTo({
|
|
|
- url: '/pages/tasksquare/specialTask/specialTaskDetail?id=' + item.project_id
|
|
|
+ url: '/pages/tasksquare/specialTask/specialTaskDetail?id=' +
|
|
|
+ item.project_id
|
|
|
});
|
|
|
}
|
|
|
// }
|
|
@@ -786,7 +842,7 @@
|
|
|
</script>
|
|
|
<style>
|
|
|
/deep/ .share .uni-popup .uni-popup__wrapper {
|
|
|
- width: 70% !important;
|
|
|
+ width: 80% !important;
|
|
|
border-radius: 15rpx !important;
|
|
|
}
|
|
|
</style>
|
|
@@ -811,7 +867,7 @@
|
|
|
|
|
|
//弹窗
|
|
|
.sharepage {
|
|
|
- width: 90%;
|
|
|
+ // width: 90%;
|
|
|
margin: 0 auto;
|
|
|
// position: relative;
|
|
|
}
|
|
@@ -826,18 +882,10 @@
|
|
|
// padding-top: 5%;
|
|
|
padding: 0 0 0 1%;
|
|
|
height: 80rpx;
|
|
|
- margin-top: 7%;
|
|
|
+ margin: 5% 0;
|
|
|
text-align: center;
|
|
|
}
|
|
|
|
|
|
- .projecttext1 span {
|
|
|
- color: #333333;
|
|
|
- font-size: 100%;
|
|
|
- font-weight: 550;
|
|
|
- text-indent: 2em;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
.projecttext1 image {
|
|
|
vertical-align: middle;
|
|
|
width: 80rpx;
|
|
@@ -849,8 +897,8 @@
|
|
|
.sharemap {
|
|
|
margin: 0 auto;
|
|
|
text-align: center;
|
|
|
- margin-top: 15%;
|
|
|
- margin-bottom: 15%;
|
|
|
+ // margin-top: 15%;
|
|
|
+ // margin-bottom: 15%;
|
|
|
}
|
|
|
|
|
|
.sharemap image {
|
|
@@ -859,10 +907,32 @@
|
|
|
|
|
|
}
|
|
|
|
|
|
+ .sharetxt {
|
|
|
+ height: 100rpx;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ .sharetxt text {
|
|
|
+ font-size: 24rpx;
|
|
|
+ text-align: left;
|
|
|
+ line-height: 20rpx
|
|
|
+ }
|
|
|
+
|
|
|
.butmin {
|
|
|
- height: 48rpx;
|
|
|
- background-color: #3397FA;
|
|
|
- color: #FFFFFF;
|
|
|
+ // height: 48rpx;
|
|
|
+ width: 250rpx;
|
|
|
+ background-color: #FCCF41;
|
|
|
+ line-height: 48rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .butmin1 {
|
|
|
+ // height: 48rpx;
|
|
|
+ width: 250rpx;
|
|
|
+ background-color: #fff;
|
|
|
+ border: #000000 1rpx solid;
|
|
|
line-height: 48rpx;
|
|
|
}
|
|
|
|
|
@@ -1206,9 +1276,9 @@
|
|
|
}
|
|
|
|
|
|
.share p {
|
|
|
- display: inline-block;
|
|
|
+ // display: inline-block;
|
|
|
font-size: 24rpx;
|
|
|
- color: #333333;
|
|
|
+ // color: #333333;
|
|
|
}
|
|
|
|
|
|
.project {
|