應用介紹:
- 非常有意思的猜一字題闖關游戲,開動你的小腦筋來一場最有趣的答題歷險;
- 題目雖然看似簡單,但詞匯難度在不斷的提升哦,當不熟悉的成語出現時玩家就需要好好思考一下了;
- 利用兩個漢字的優勢,當一個字謎無法攻破的時候玩家就需要從另外使用提供的決議;
功能介紹:
考驗智力考驗腦力的一款游戲,換了不斷的關卡挑戰,來一場最有趣的闖關大戰吧,精彩不停的玩模式,將時下最熱門的字謎融入到游戲中,邀請好友和你一起加入挑戰,看看誰能最快通關吧,做題有獎是一款微信小程式猜字謎文字游戲,答題正確獎勵R幣,兌換成微信錢包現金, 簡單操作, 高手五分鐘即時 可 提 現 1 元 , \color{#FF0000}{可提現1元,} 可提現1元,
程式體驗:

程式瀏覽:
下載地址:
提供的原始碼可以同步編譯成 小程式 APP H5原始碼各個版本, 具體操作不屬于本文章范圍,不做教程了, 如有不清楚如何操作的,留言咨詢吧,下載地址
配置代碼:
介面地址在mian.js中,requstUrl地址換成你自己的
// 請求過渡狀態
loadModal: false,
isLogin: 'CLOSE',
// 資料介面地址
requstUrl: "http://192.168.1.20:8081/duties/api/",
loginOk: function() {
console.log("登陸成功");
this.isLogin = 'CLOSE';
},
// 獲取Header
acceptHeader: function() {
let token = uni.getStorageSync('token');
let header = {'content-type': 'application/x-www-form-urlencoded'};
if(token) {
header['token'] = token;
}
return header;
},
統一登陸檔案model-userlogin.vue的核心代碼script如下自行創建一下:
export default {
name: 'model-userlogin',
data() {
return {
isShow: 'CLOSE',
readlyAccount: true,
UserLoginInfo: {
phoneOrname: "",
pass: "",
clientIp: "127.0.0.1",
longItude: "0",
latItude: "0"
},
// ** 用戶注冊 **
UserRegisterInfo: {
phone: "",
pass: "",
code: "",
shareCode: "",
longItude: "0",
latItude: "0",
authtoken: ""
},
captchaUrl: "",
kaptcha: "",
model: {
show: false
}
};
},
created() {
let _this = this;
// 監聽登陸
uni.$on("loginModel", (e)=>{
_this.isShow = e;
});
// 獲取經緯
uni.getLocation({
type: 'wgs84',
success: function (res) {
_this.UserRegisterInfo.longItude = res.longitude;
_this.UserRegisterInfo.latItude = res.latitude;
}
});
},
methods: {
getUserInfo() {
let _this = this;
// 發起請求
_this.Http.post("my/****", {}, function(responseData) {
console.log("用戶資訊", responseData);
_this.UserInfo = responseData.returndata;
});
},
// 關閉彈窗
isCloseLogin: function() {
let _this = this;
uni.$emit("loginModel", 'CLOSEWIN');
},
}
}
先發布一篇看下 看下回應如何,下期 考慮分享Uniapp的全域登陸如何實作,或者語音合成專案案例,原創不易,喜歡的關注一下吧!
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/150092.html
標籤:其他
